Skip to content

Demonstrates hosting SwiftUI in a UISplitViewController to gain the sidebar style in Mac Catalyst

Notifications You must be signed in to change notification settings

steventroughtonsmith/CatalystSwiftUISidebar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

CatalystSwiftUISidebar

Really trivial example showing how to wrap SwiftUI in a UISplitViewController, so that you can use the correct sidebar background style when building for macOS.

N.B. the built-in SidebarListStyle does not behave correctly on macOS, so if you want to look like a Mac app you'll need to have your own, custom list style, or use some other kind of control to populate your sidebar

Screenshot

About

Demonstrates hosting SwiftUI in a UISplitViewController to gain the sidebar style in Mac Catalyst

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages