We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 897f44a commit 787a977Copy full SHA for 787a977
Shared/ContentView.swift
@@ -9,8 +9,10 @@ import SwiftUI
9
10
struct ContentView: View {
11
var body: some View {
12
- Text("Hello, world!")
13
- Text("This is SwiftUI 2.").padding()
+ VStack {
+ Text("Hello, world!")
14
+ Text("Welcome to SwiftUI 2.").padding()
15
+ }.navigationTitle("Explore")
16
}
17
18
Shared/SidebarApp.swift
@@ -11,7 +11,11 @@ import SwiftUI
struct SidebarApp: App {
var body: some Scene {
WindowGroup {
+ #if os(macOS)
SidebarView()
+ #else
+ ContentView()
+ #endif
19
20
21
0 commit comments