@@ -21,6 +21,8 @@ struct ContentView: View {
2121 @State private var isMaskingUIKitCreditCardEnabled : Bool = false
2222 @State private var isNumberPadEnabled : Bool = false
2323 @State private var isNotebookEnabled : Bool = false
24+ @State private var isStoryboardEnabled : Bool = false
25+ @State private var isWebviewEnabled : Bool = false
2426
2527 @State private var buttonPressed : Bool = false
2628 @State private var errorPressed : Bool = false
@@ -53,27 +55,35 @@ struct ContentView: View {
5355#endif
5456
5557 FauxLinkToggleRow ( title: " Notebook (SwiftUI) " , isOn: $isNotebookEnabled)
58+ FauxLinkToggleRow ( title: " Storyboad (UIKit) " , isOn: $isStoryboardEnabled)
59+ FauxLinkToggleRow ( title: " WebView (WebKit) " , isOn: $isWebviewEnabled)
5660
57- Button {
58- buttonPressed. toggle ( )
59- } label: {
60- Text ( " span " )
61- }
62- . buttonStyle ( . borderedProminent)
63-
64- Button {
65- logsPressed. toggle ( )
66- } label: {
67- Text ( " logs " )
61+ NavigationLink ( destination: SystemUnderPressureView ( ) ) {
62+ Text ( " Simulate System Under Pressure " )
6863 }
69- . buttonStyle ( . borderedProminent)
7064
71- Button {
72- counterMetricPressed. toggle ( )
73- } label: {
74- Text ( " metric: counter " )
65+ HStack {
66+ Button {
67+ buttonPressed. toggle ( )
68+ } label: {
69+ Text ( " span " )
70+ }
71+ . buttonStyle ( . borderedProminent)
72+
73+ Button {
74+ logsPressed. toggle ( )
75+ } label: {
76+ Text ( " logs " )
77+ }
78+ . buttonStyle ( . borderedProminent)
79+
80+ Button {
81+ counterMetricPressed. toggle ( )
82+ } label: {
83+ Text ( " metric: counter " )
84+ }
85+ . buttonStyle ( . borderedProminent)
7586 }
76- . buttonStyle ( . borderedProminent)
7787
7888 Button {
7989 networkPressed. toggle ( )
@@ -88,27 +98,27 @@ struct ContentView: View {
8898 }
8999 . buttonStyle ( . borderedProminent)
90100 . disabled ( networkPressed)
91-
92- Button {
93- errorPressed. toggle ( )
94- } label: {
95- Text ( " error " )
101+
102+ HStack {
103+ Button {
104+ errorPressed. toggle ( )
105+ } label: {
106+ Text ( " error " )
107+ }
108+ . buttonStyle ( . borderedProminent)
109+ . tint ( . red)
110+
111+ Button {
112+ crashPressed. toggle ( )
113+ } label: {
114+ Text ( " Crash " )
115+ }
116+ . buttonStyle ( . borderedProminent)
117+ . tint ( . red)
96118 }
97- . buttonStyle ( . borderedProminent)
98- . tint ( . red)
99119
100- Button {
101- crashPressed. toggle ( )
102- } label: {
103- Text ( " Crash " )
104- }
105- . buttonStyle ( . borderedProminent)
106- . tint ( . red)
107- NavigationLink ( destination: SystemUnderPressureView ( ) ) {
108- Text ( " Simulate System Under Pressure " )
109- }
110120
111-
121+
112122 } . background ( Color . clear)
113123 }
114124 . task ( id: errorPressed) {
@@ -180,6 +190,10 @@ struct ContentView: View {
180190 MaskingElementsSimpleUIKitView ( )
181191 } . sheet ( isPresented: $isNumberPadEnabled) {
182192 NumberPadView ( )
193+ } . sheet ( isPresented: $isStoryboardEnabled) {
194+ StoryboardRootView ( )
195+ } . sheet ( isPresented: $isWebviewEnabled) {
196+ WebViewControllertView ( )
183197 }
184198 }
185199}
0 commit comments