🔹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 styleSwiftUI ⟩
ShapeStyle ⟩ .foreground (static):foreground style in the current context.
Last updated
Was this helpful?