Label โŸฉ custom styles

SwiftUI โŸฉ Controls โŸฉ Label โŸฉ

๐Ÿ‘‰ SwiftUI โŸฉ Label

struct ContentView: View {
    @State private var isOn = true
    var body: some View {
        Toggle(isOn: $isOn){
            Label("Hello", systemImage: "person")
                // ๐ŸŒ€ .redBorder
                .labelStyle(.redBorder)    
        }
    }
}

Last updated

Was this helpful?