Post

Replies

Boosts

Views

Activity

Reply to Brand new SwiftUI apps not building for Catalyst on Xcode 12 GM
Disclaimer: I'm a total noob to Xcode & SwiftUI. How do you actually "replace the @main annotation on the app delegate with @UIApplicationMain"? My project is named "SwiftUiTest20200921" and I tried opening SwiftUiTest20200921.swift at the compile error. When I change "@main" to "@UIApplicationMain" and immediately get an error saying that "@UIApplicationMain may only be used on 'class' declarations". Here's the code: import SwiftUI @UIApplicationMain struct SwiftUiTest20200921App: App { 		var body: some Scene { 				WindowGroup { 						ContentView() 				} 		} } Any ideas? Thanks!
Sep ’20