Creating Shapes in SwiftUI
Creating Basic Shapes
Circle
import SwiftUI
struct ShapesSwiftUI: View {
var body: some View {
Circle()
.frame(width: 200, height: 200)
}
}
Ellipse

Rectangle

Rounded Rectangle

Customizing Shapes
Fill

Stroke

Shadow

Gradient Fills

Last updated