Skip to content

steventroughtonsmith/CatalystSwiftUISidebar

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

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