Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Pass Data Between Settings and Other Scenes In a SwiftUI macOS App

Pass Data Between Settings and Other Scenes In a SwiftUI macOS App

Daily Coding Tip 169

Millie Sturgeon's avatar
Millie Sturgeon
Sep 09, 2022
∙ Paid

Share this post

Type Safely
Type Safely
Pass Data Between Settings and Other Scenes In a SwiftUI macOS App
Share
black and white metal tool

I created a new Mac project, and without thinking I called it MacApp. This created a file called MacAppApp, in which a structure called MacAppApp conforms to the App protocol.

If you have a better name for your Mac app, you’re welcome to use it.

The next thing I’m going to do is create SettingsView.

In order to communicate with other scenes, this view is…

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share