Fun SwiftUI tip - conditionally applying background and foreground styles: .background(filled ? AnyShapeStyle(.thickMaterial) : AnyShapeStyle(.clear)) Utilize the AnyShapeStyle wrapper to conditionally apply your style.
1 repost6 likes
Fun SwiftUI tip - conditionally applying background and foreground styles: .background(filled ? AnyShapeStyle(.thickMaterial) : AnyShapeStyle(.clear)) Utilize the AnyShapeStyle wrapper to conditionally apply your style.
1 repost6 likes