You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Connecting a Root Navigation Controller in Swift Using Storyboard
3
+
# Embedding a Root Navigation Controller in Swift Using Storyboard
4
4
5
5
By default, Capacitor apps are embedded in a `CAPBridgeViewController`. To utilize the "push" type for presenting portals, it is necessary to embed the app within a navigation controller.
6
6
@@ -23,22 +23,9 @@ By default, Capacitor apps are embedded in a `CAPBridgeViewController`. To utili
23
23
24
24
## Step 2: Add a Navigation Controller
25
25
26
-
1.Drag and drop a "Navigation Controller" from the Object Library onto the storyboard canvas.
26
+
1.Select the Bridge View Controller and locate the Editor section in the menu bar.
2. The navigation controller will come with an attached view controller. Remove the attached view controller and add a root view controller seugue from the navigation controller to the bridge view controller.
28
+
2. Select Editor -> Embed In -> Navigation Controller. This will embed the Bridge View Controller within a navigation controller, as well as set the navigation controller as the initial view controller.
42
29
43
30
<em
44
31
style={{
@@ -47,29 +34,15 @@ By default, Capacitor apps are embedded in a `CAPBridgeViewController`. To utili
0 commit comments