๐Ÿ”ฐconditional modifier

SwiftUI โŸฉ view โŸฉ modifier โŸฉ conditional modifier

Change view modifiers conditionally

Circle()
    // โญ๏ธ conditional modifier (`isOn`: @State view property)
    .foregroundColor( isOn ? .red : .yellow )    

Last updated