Posts

Post marked as solved
3 Replies
Yes, customization remains an important part of the Mac toolbar experience.
Post marked as solved
5 Replies
Hi CracchioloNick, If your app needs to use traditional App Delegate methods for these types of lifecycle events, you can use the NSApplicationDelegateAdaptor - https://developer.apple.com/documentation/swiftui/nsapplicationdelegateadaptor or UIApplicationDelegateAdaptor - https://developer.apple.com/documentation/swiftui/uiapplicationdelegateadaptor property wrappers to supply a type that should handle those delegate methods. You can use it like this: @main struct MyApp: App { 		@UIApplicationDelegateAdaptor private var appDelegate: AppDelegate 		var body: some Scene { 				WindowGroup { 						RootView() 				} 		} } class AppDelegate: NSObject, UIApplicationDelegate { } With this declaration, a single instance of your App Delegate class will be created to handle any of the delegate methods that it implements, including push notification callbacks and/or CloudKit sharing invitations.