Hi there! Please sign in
help
tags
users
badges
ALL
UNANSWERED
Ask Your Question
Revision history [
back
]
1
initial version
answered
2023-07-03 12:13:02 +0000
lakamha
21
●
3
●
3
Open the project in Xcode.
Click on the Main.storyboard file to open it.
Select the View Controller that contains the sidebar.
In the Attributes Inspector, find the "Show Sidebar" option and check the box.
Build and run the application to verify that the sidebar is automatically opened upon launching the application.
If the sidebar does not open by default, go to the AppDelegate.swift file in the project.
Find the "applicationDidFinishLaunching(_:)” method.
Add the line of code that opens the sidebar:
splitViewController?.show(.sidebar, sender: nil)
Build and run the application to verify that the sidebar now opens by default upon launching the application.
Copyright QStack.ai, 2010-2023. Content on this site is licensed under the Creative Commons Attribution Share Alike 3.0 license.
Please note: QStack requires javascript to work properly, please enable javascript in your browser,
here is how