diff --git a/Development/Development.xcodeproj/project.pbxproj b/Development/Development.xcodeproj/project.pbxproj index f81a705..b6324b2 100644 --- a/Development/Development.xcodeproj/project.pbxproj +++ b/Development/Development.xcodeproj/project.pbxproj @@ -22,6 +22,7 @@ 4B7E762F29B9A214009DE246 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 4B7E763129B9A29A009DE246 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; 4B7E763429B9A49D009DE246 /* Launch Screen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = "Launch Screen.storyboard"; sourceTree = ""; }; + 4B7E763629B9AC1A009DE246 /* swiftui-Hosting */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = "swiftui-Hosting"; path = ..; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -38,6 +39,7 @@ 4B7E761529B9A1EF009DE246 = { isa = PBXGroup; children = ( + 4B7E763629B9AC1A009DE246 /* swiftui-Hosting */, 4B7E762029B9A1EF009DE246 /* Development */, 4B7E761F29B9A1EF009DE246 /* Products */, ); diff --git a/Development/Development/ContentView.swift b/Development/Development/ContentView.swift index d0dca3d..543c147 100644 --- a/Development/Development/ContentView.swift +++ b/Development/Development/ContentView.swift @@ -9,13 +9,13 @@ import SwiftUI struct ContentView: View { var body: some View { - VStack { - Image(systemName: "globe") - .imageScale(.large) - .foregroundColor(.accentColor) - Text("Hello, world!") + NavigationView { + List { + NavigationLink("Content") { + BookFoo() + } + } } - .padding() } } @@ -24,3 +24,20 @@ struct ContentView_Previews: PreviewProvider { ContentView() } } + +struct BookFoo: View, PreviewProvider { + var body: some View { + Content() + } + + static var previews: some View { + Self() + } + + private struct Content: View { + + var body: some View { + Text("Book") + } + } +}