Skip to content

Commit d39bec1

Browse files
committed
update Router package
1 parent 83f60bc commit d39bec1

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

RouterExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RouterExample/ContentView.swift

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,50 @@ struct ContentView: View {
3131
.binding(name: "count", to: $count)
3232
.go()
3333
}
34+
35+
Button("FormSheet") {
36+
router.builder()
37+
.route("myapp://counter")
38+
.presentation(mode: .formSheet)
39+
.binding(name: "count", to: $count)
40+
.go()
41+
}
42+
43+
Button("currentContext") {
44+
router.builder()
45+
.route("myapp://counter")
46+
.presentation(mode: .currentContext)
47+
.transition(style: .crossDissolve)
48+
.binding(name: "count", to: $count)
49+
.go()
50+
}
51+
52+
Button("overCurrentContext") {
53+
router.builder()
54+
.route("myapp://counter")
55+
.presentation(mode: .overCurrentContext)
56+
.transition(style: .crossDissolve)
57+
.binding(name: "count", to: $count)
58+
.go()
59+
}
60+
61+
Button("fullscreen") {
62+
router.builder()
63+
.route("myapp://counter")
64+
.presentation(mode: .fullscreen)
65+
.transition(style: .crossDissolve)
66+
.binding(name: "count", to: $count)
67+
.go()
68+
}
69+
70+
Button("overFullscreen") {
71+
router.builder()
72+
.route("myapp://counter")
73+
.presentation(mode: .overFullscreen)
74+
.transition(style: .crossDissolve)
75+
.binding(name: "count", to: $count)
76+
.go()
77+
}
3478
}
3579
}
3680
}

0 commit comments

Comments
 (0)