🔹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 styleLast updated
Was this helpful?