SkillAgentSearch skills...

CatalystSwiftUISidebar

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

Install / Use

/learn @steventroughtonsmith/CatalystSwiftUISidebar
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars75
CategoryDevelopment
Updated5mo ago
Forks4

Languages

Swift

Security Score

77/100

Audited on Oct 5, 2025

No findings