Skip to content

Commit 787a977

Browse files
authored
Update
1 parent 897f44a commit 787a977

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Shared/ContentView.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ import SwiftUI
99

1010
struct ContentView: View {
1111
var body: some View {
12-
Text("Hello, world!")
13-
Text("This is SwiftUI 2.").padding()
12+
VStack {
13+
Text("Hello, world!")
14+
Text("Welcome to SwiftUI 2.").padding()
15+
}.navigationTitle("Explore")
1416
}
1517
}
1618

Shared/SidebarApp.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ import SwiftUI
1111
struct SidebarApp: App {
1212
var body: some Scene {
1313
WindowGroup {
14+
#if os(macOS)
1415
SidebarView()
16+
#else
17+
ContentView()
18+
#endif
1519
}
1620
}
1721
}

0 commit comments

Comments
 (0)