Posts

Post not yet marked as solved
12 Replies
Got the same problem. Trying to download the full installer. However, it gets stuck after finishing downloading. (says 12.88GB of 12.88GB)
Post not yet marked as solved
2 Replies
The "Optimize Interface for Mac" is an option for Catalyst. It allows you to build a more native Mac app, while still using Catalyst libraries (so UIKit). The separate macOS target will build a native Mac app, it uses AppKit APIs. Also, #if os(macOS) Settings { SettingsView() } #endif is only available on SwiftUI on AppKit, so you have to use the native macOS target in order to use this API. In my opinion, it always is better to use the native library and build native apps. Especially when you're building an app completely from scratch using SwiftUI, since so many APIs are shared between native SwiftUI on iOS and SwiftUI on Mac. P.S. Yeah, I do think the SwiftUI's TextEditor is quite limiting. Hopefully it will gain additional features next year. In the meanwhile, consider using NSTextView in NSViewRepresentable if you want to use the native SwiftUI on AppKit.
Post not yet marked as solved
5 Replies
I came up with this crash in the original question last week. I found a quick fix that works for me. First, make an new file with an extension to the managed object (replace Note with your object name): extension Note {     class func swiftUIFetchRequest() -> NSFetchRequest<Note> {         let request = NSFetchRequest<Note>(entityName: "Note")         request.sortDescriptors = [] /* You can add custom sort descriptors here */         return request     } } Then, start using FetchRequest like this (again, replacing Note with your object name): @FetchRequest(fetchRequest: Note.swiftUIFetchRequest()) var allNotes: FetchedResults<Note> Let me know if it works for you. I think the entity initializer is a little bit broken in beta 1.
Post not yet marked as solved
2 Replies
I would use an @UIApplicationDelegateAdaptor, that way you can still have a traditional app delegate that can handle these kind of actions. Of course it would be great if someone points out a native way that I missed.
Post not yet marked as solved
8 Replies
Beta version does not support uploading apps to the App Store. You have to wait until the GM version or final release before uploading apps onto the App Store.