SwiftUI: Difference between revisions
Jump to navigation
Jump to search
Line 105: | Line 105: | ||
| valign="top" | | | valign="top" | | ||
* [https://stackoverflow.com/questions/56938805/how-to-pass-one-swiftui-view-as-a-variable-to-another-view-struct SwiftUI View as a variable to another View] | * [https://stackoverflow.com/questions/56938805/how-to-pass-one-swiftui-view-as-a-variable-to-another-view-struct SwiftUI View as a variable to another View] | ||
* [https://stackoverflow.com/questions/56645647 Dynamic List of Views using SwiftUI] | |||
* [https://www.amerhukic.com/finding-the-custom-url-scheme-of-an-ios-app Finding the custom URL scheme] | * [https://www.amerhukic.com/finding-the-custom-url-scheme-of-an-ios-app Finding the custom URL scheme] | ||
* [https://www.objc.io/blog/2019/06/25/swiftui-data-loading/ Loading Data Asynchronously] | * [https://www.objc.io/blog/2019/06/25/swiftui-data-loading/ Loading Data Asynchronously] |
Revision as of 01:00, 15 March 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()
}
}