@@ -31,6 +31,50 @@ struct ContentView: View {
31
31
. binding ( name: " count " , to: $count)
32
32
. go ( )
33
33
}
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
+ }
34
78
}
35
79
}
36
80
}
0 commit comments