Post

Replies

Boosts

Views

Activity

Reply to 'UIScreen' is unavailable in visionOS, how to fix it? Is there anything to replace UIScreen?
My workaround for now, taking sidebar visibility into consideration. var screenWidth: Int? = nil if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene { if splitViewVisibility == .detailOnly { screenWidth = Int(windowScene.coordinateSpace.bounds.width) }else{ screenWidth = Int(windowScene.coordinateSpace.bounds.width) - 320 } }
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’24
Reply to SwiftData with shared and private containers
+1 I've built an app using CoreData + CloudKit and now I have to rewrite everything using NSPersistentCloudKitContainer.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’25
Reply to ICDeviceBrowser fails to find any devices after iOS 18 update
I had the same problem. It resolved after adding USB under the hardware section in the Signing & Capabilities -> App Sandbox. Everything's back to normal now.
Replies
Boosts
Views
Activity
Nov ’24
Reply to visionOS & Document App Bug
This particular bug is fixed with visionOS 2.0, but now iOS 18 has introduced a variety of new problems with SwiftUI document based apps.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to iOS 18 changes the order of Document-based SwiftUI document reading and view loading?
Same problems here. It also looks like all classes initialized stay alive when you close a document and only deinit when you open/create another document. Eventually I'm not able to open/create any documents and have to relaunch my app. Following along for updates -- not sure what to do.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to 'UIScreen' is unavailable in visionOS, how to fix it? Is there anything to replace UIScreen?
My workaround for now, taking sidebar visibility into consideration. var screenWidth: Int? = nil if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene { if splitViewVisibility == .detailOnly { screenWidth = Int(windowScene.coordinateSpace.bounds.width) }else{ screenWidth = Int(windowScene.coordinateSpace.bounds.width) - 320 } }
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jan ’24