Post

Replies

Boosts

Views

Activity

Reply to My SwiftUI code is becoming un-SwiftUI-y. I'm looking to make things right again.
Try using a didSet on each of the AppStorage fields. This can either: immediately call updateAvailableWords whenever there's a change set a flag indicating that availableWords is out of date; make availableWords a computed property that updates itself only if that flag is true Also, I would make availableWords private(set) - external clients should not be manipulating it directly.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’24
Reply to Please Create a Sendable Version of CKRecord or Make CKRecord Sendable
In case anyone comes across this topic in the future, CKRecord is now officially Sendable (source). I believe this change was made in iOS 17.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to CloudKit costs.
I don't see that page anymore, but keep in mind that that pricing is only for usage of the public database. Usage of the private database comes out of the user's iCloud quota.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to Visionkit can lift a subject. But the bounding rectangle is always returning x,y,width,height values as 0,0,0,0
This happens if the interaction doesn't have an associated view. I think this should probably emit some kind of warning, but instead it just returns (0,0,0,0) as the bounds. To fix it, you need someImageView.addInteraction(interaction) before you access the subjects array.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to My SwiftUI code is becoming un-SwiftUI-y. I'm looking to make things right again.
Try using a didSet on each of the AppStorage fields. This can either: immediately call updateAvailableWords whenever there's a change set a flag indicating that availableWords is out of date; make availableWords a computed property that updates itself only if that flag is true Also, I would make availableWords private(set) - external clients should not be manipulating it directly.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to CloudKit: how to simulate errors
I know this is an old question, but you can test this kind of error-handling logic by temporarily adding code to throw these errors, e.g.: throw CKError(.requestRateLimited, [CKErrorRetryAfterKey: NSNumber(value: 10)
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to “iPhone” is busy: Making the device ready for development
I was able to solve this using the StackOverflow question mentioned by @Claude31 below. In my case, I opened "Devices and Simulators", then unpaired the device, closed Xcode, opened Xcode, and re-paired the device.
Replies
Boosts
Views
Activity
Jul ’23
Reply to Xcode 15 beta 3 linker issue: ld: warning: duplicate -rpath
This seems to be fixed in Beta 4
Replies
Boosts
Views
Activity
Jul ’23
Reply to Xcode 15 beta 3 linker issue: ld: warning: duplicate -rpath
Seeing this too
Replies
Boosts
Views
Activity
Jul ’23
Reply to Unable to Renew Developer Program Membership
Vist "developer.apple.com" and sign into your account there to renew. Not sure if you can renew from the Developer app.
Replies
Boosts
Views
Activity
Jun ’23