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