🔸data separation

terms ⟩ data separation

Examples

import SwiftUI

struct ContentView: View {

    // ⭐️ view state (data)
    @State var isOn = true
    
    // ⭐️ user interface
    var body: some View {
        // ...
    }
    
}

Last updated

Was this helpful?