๐นShapeStyle.foreground
SwiftUI โฉ view โฉ drawing โฉ foreground โฉ style โฉ .foreground
foreground style in the current context.
Circle()
// โญโโ โญ๏ธ โโโโฎ
.stroke(.foreground, lineWidth: 20) // default: .blue
.frame(width: 100, height: 100)
.foreground shape styleview.foregroundStyle()๏ผ่จญๅฎๅๆฏๅ ็ด ็ ShapeStyleใ
foreground element๏ผๅๆฏๅ ็ด
SwiftUI โฉ
ShapeStyle โฉ .foreground (static)๏ผforeground style in the current context.
View โฉ .foregroundStyle(_:)๏ผ
Last updated
Was this helpful?