SwiftUI: Difference between revisions
Jump to navigation
Jump to search
Line 43: | Line 43: | ||
| valign="top" | | | valign="top" | | ||
* [https://stackoverflow.com/questions/56556400 NavigationView without NavigationButton] | * [https://stackoverflow.com/questions/56556400 NavigationView without NavigationButton] | ||
* [https://stackoverflow.com/questions/57018760 Add a bottom line on TextField] | |||
* [https://stackoverflow.com/questions/56514998 Find Images by System Name] | * [https://stackoverflow.com/questions/56514998 Find Images by System Name] | ||
* [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] | ||
Line 51: | Line 52: | ||
* [https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/system-icons/ System Icons] | * [https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/system-icons/ System Icons] | ||
* [https://developer.apple.com/design/human-interface-guidelines/sf-symbols/overview/ SF Symbols] | * [https://developer.apple.com/design/human-interface-guidelines/sf-symbols/overview/ SF Symbols] | ||
| valign="top" | | |||
|} | |} |
Revision as of 02:16, 30 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()
}
}