When attempting to build a Multiplatform App, for example, the WWDC21 Fruta App, and attempting to add the @UIApplicationDelegateAdapter, there is an error:
"UIKit is not available when building for macOS. Consider using #if !os(macOS) to conditionally import this framework."
However, this is required in order to add remote notifications, among other features. What do we do to add UI Kit and the necessary UIApplicationDelegateAdapter in a Multiplatform app?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: