๐นview.foregroundStyle()
SwiftUI โฉ view โฉ drawing โฉ foreground โฉ style โฉ .foregroundStyle()
่จญๅฎๅๆฏๅ
็ด ็ ShapeStyle
ใ
HStack {
Image(systemName: "triangle.fill")
Text("Hello, world!")
RoundedRectangle(cornerRadius: 5)
.frame(width: 40, height: 20)
}
// โญ๏ธ view.foregroundStyle(shapeStyle)
.foregroundStyle(.teal)
Last updated
Was this helpful?