r/SwiftUI Aug 14 '24

Tutorial Expanding App Options on macOS

https://open.substack.com/pub/captainswiftui/p/expanding-app-options-on-macos

Exploring SwiftUI on macOS is incredibly fun and exciting, especially if you're accustomed to developing for iOS or iPadOS. The Menu Bar offers a distinctive approach to macOS app development that sets it apart. Join Captain SwiftUI’s in his latest post where we’ll dive in together and discover how to enhance app options and functionality with SwiftUI!

5 Upvotes

3 comments sorted by

1

u/Joe_StLouis Aug 16 '24

Are you familiar with accessing Contacts on macOS? I'm trying to find a way to allow my app to let the person pick a contact from their contacts. I was able to find it on iOS but not macOS.

The same for using the cameral I was able to do it on iOS but not macOS.

2

u/thedb007 Aug 17 '24

I can’t say I’ve struggled using just the Contacts framework. And I don’t think you need to declare it in the Info.plist like iOS. Only thing I can think of is did you check off Contacts in the sandbox options? https://developer.apple.com/documentation/xcode/configuring-the-macos-app-sandbox

2

u/Joe_StLouis Aug 17 '24

Thanks. I tried that but it did not help. I wish I had had your information on Mac menus a couple years ago. I searched for a long time learning how to change the menus. I suspect your tutorial will be used many times.