Post

Replies

Boosts

Views

Activity

Reply to Store USDZ with SwiftData
I think that storing small amounts of arbitrary data is stored as a blob in the database and large blocks are saved in the file system with the database having a pointer to the file. I would expect the intended way to retrieve the data is using a fetch request rather than trying to access the file yourself.
Topic: Graphics & Games SubTopic: General Tags:
May ’24
Reply to Upgrading and exiting
A thought would be to display an alert with no buttons explaining to the user what is going on. That blocks the ui without terminating the app.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to How can I check if my project is set up to use SwiftData?
One thing to look for would be the @Model macro in your data model classes.
Replies
Boosts
Views
Activity
Apr ’24
Reply to Is SwiftData created specifically for SwiftUI?
I found this example https://www.hackingwithswift.com/quick-start/swiftdata/how-to-use-swiftdata-with-uikit
Replies
Boosts
Views
Activity
Apr ’24
Reply to Safari shows "No Inspectable Applications" while trying to remote debug web app.
Are you setting the isInspectable property to true when running on ios 16.4/macos 13.3 and later?
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Unable to add Capability in Vision OS
The documentation doesn't list visionos being supported https://developer.apple.com/documentation/sign_in_with_apple
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to MP3 works on simulator but not after I upload the build
I would be sure to validate the capitalization of the file and path. Macos tends to come using a case insensitive file system where ios is case sensitive.
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Swift performance, debug build hundreds of times slower than release
You can go into the build settings and change the optimization settings to match the release. That most likely will be at the cost of breakpoints not working as expected and possibly not being able to access some variables.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to When using index in a ForEach loop in SwiftUI, you might encounter an "index out of range" error.
I believe you need to use \.self as the id in the for each loop. That way it will check for changes in the loop range.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to IOS 17+ devices not connecting to Xcode 15.3/Xcode 15.4 Beta
Are you using a company mac that includes a firewall or you are using a vpn? Starting with iOS 17 Apple switched over to only using a network connection for communicating with the phone. This can be over wifi or a usb cable.
Replies
Boosts
Views
Activity
May ’24
Reply to Persisting Color from ColorPicker
You could create a class that has the component elements of the color as properties and have convenience propertie(s) that return a color using the stored properties.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Any Way to Upgrade Xcode Cloud Subscription on Desktop?
There seems to be a Macos version in the mac app store. You could try that.
Replies
Boosts
Views
Activity
May ’24
Reply to Safari extensions not working correctly on IOS 17.4.1 and 17.5 beta
It is worth remembering that only you and Apple personnel can see details of your feedback tickets. For others, we get a feedback not found page.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to lass AKAlertImageURLProvider and AKBiometricRatchetUtility are implemented in both AuthKitUI and AuthKit
Ultimately that is an Apple bug. You won't be able to fix it. If your app is otherwise working, I would suggest ignoring it.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Store USDZ with SwiftData
I think that storing small amounts of arbitrary data is stored as a blob in the database and large blocks are saved in the file system with the database having a pointer to the file. I would expect the intended way to retrieve the data is using a fetch request rather than trying to access the file yourself.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Scheduling Local Notifications with repeat interval
What I would do is trigger an interval timer using the date/time timer.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
May ’24