SwiftUI: Difference between revisions
Jump to navigation
Jump to search
Line 106: | Line 106: | ||
* [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://stackoverflow.com/questions/57415086 Passing data between Views] | * [https://stackoverflow.com/questions/57415086 Passing data between Views] | ||
* [https://forums.raywenderlich.com/t/today-extension-tutorial-getting-started/27584 URL Scheme Extension] | |||
|} | |} |
Revision as of 04:28, 20 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()
}
}