SwiftUI: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 98: Line 98:
* [https://ryanashcraft.me/swiftui-programmatic-navigation/ Programmatic Navigation]
* [https://ryanashcraft.me/swiftui-programmatic-navigation/ Programmatic Navigation]
* [https://stackoverflow.com/questions/56726663 Add a TextField to Alert]
* [https://stackoverflow.com/questions/56726663 Add a TextField to Alert]
* [https://stackoverflow.com/questions/59150320 TextField Font Weight]
* [https://github.com/SimpleBoilerplates/SwiftUI-Cheat-Sheet SwiftUI Cheat Sheet]
* [https://github.com/SimpleBoilerplates/SwiftUI-Cheat-Sheet SwiftUI Cheat Sheet]
* [https://stackoverflow.com/questions/56610957 Blur a background]
* [https://stackoverflow.com/questions/56610957 Blur a background]


|}
|}

Revision as of 04:36, 11 February 2020

ContentView

import SwiftUI

struct ContentView: View {
    var body: some View {
        VStack(alignment: .leading) {
            Text("Turtle Rock")
                .font(.title)
            HStack {
                Text("Joshua Tree National Park")
                    .font(.subheadline)
                Spacer()
                Text("California")
                    .font(.subheadline)
            }
        }
        .padding()
    }
}

struct ContentView_Preview: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}

References