Rectangle
A rectangular shape view.
Example​
- swiftui-react-native
- SwiftUI
- React Native
<Rectangle fill="red" frame={{ width: 100, height: 150 }} />
Rectangle()
.fill(Color.red)
.frame(width: 100, height: 150)
<View style={{ width: 100, height: 150, backgroundColor: 'red' }} />
Props​
Rectangle inherits all View Modifiers as props.