Skip to content

Commit

Permalink
🌲 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Mar 9, 2023
1 parent 4e19c4d commit f320399
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Development/Development.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
4B7E762F29B9A214009DE246 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
4B7E763129B9A29A009DE246 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
4B7E763429B9A49D009DE246 /* Launch Screen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = "Launch Screen.storyboard"; sourceTree = "<group>"; };
4B7E763629B9AC1A009DE246 /* swiftui-Hosting */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = "swiftui-Hosting"; path = ..; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -38,6 +39,7 @@
4B7E761529B9A1EF009DE246 = {
isa = PBXGroup;
children = (
4B7E763629B9AC1A009DE246 /* swiftui-Hosting */,
4B7E762029B9A1EF009DE246 /* Development */,
4B7E761F29B9A1EF009DE246 /* Products */,
);
Expand Down
29 changes: 23 additions & 6 deletions Development/Development/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand All @@ -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")
}
}
}

0 comments on commit f320399

Please sign in to comment.