SwiftUI: Difference between revisions
Jump to navigation
Jump to search
Line 46: | Line 46: | ||
* [https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/ Image Size and Resolution] | * [https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/ Image Size and Resolution] | ||
* [https://developer.apple.com/design/resources/ Apple Design Resources] | * [https://developer.apple.com/design/resources/ Apple Design Resources] | ||
* [https://cdn.chorke.org/goto/watch?v=FgCIRMz_3dE Pop Up View] <code>YouTube</code> | |||
* [https://www.iosapptemplates.com/blog/swiftui/navigation-drawer-swiftui Navigation Drawer] | * [https://www.iosapptemplates.com/blog/swiftui/navigation-drawer-swiftui Navigation Drawer] | ||
* [https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/launch-screen/ Launch Screen] | * [https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/launch-screen/ Launch Screen] |
Revision as of 04:08, 29 December 2019
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()
}
}