Post

Replies

Boosts

Views

Activity

Reply to SwiftUI... but why?
I think you miss the point of SwiftUI. The main benefit of SwiftUI is that your UI is the output of a function where the input is the state you want to display. I cannot think of a better way to solve this problem. The bad part of SwiftUI is, that it is not mature enough to replace UIKit - but it will be in some years.
Sep ’20
Reply to App Group Not working as intended after updating to macOS 15 beta.
I have exactly the same problem. According to https://developer.apple.com/documentation/xcode/configuring-app-groups, the app group name on macOS should look like this: $(TeamIdentifierPrefix)com.example.mygroup. This does solve the popup problem, but unfortunately creates another one for multi-platform applications. Because the Xcode UI does not allow you to create different app groups for different platforms, app group names that are valid for macOS are invalid for iOS and vice versa. I have not found a solution yet.
Jul ’24
Reply to CKSyncEngine with dependent CKRecords
I have not implemented it yet, but I think my concern is a logical assumption according to the way CKSyncEngine works. I'd assume that, when triggering nextRecordZoneChangeBatch(_:syncEngine:), CKSyncEngine will ensure the records that have dependencies are included in context.options.scope (CKSyncEngine.SendChangesOptions.Scope), if you put the records together when adding a pending change. I have been unable to find any information regarding how CKSyncEngine handles this. Could you please advise if there is a way to be sure about that, or if we have to guess and see if it fails in edge cases? Greetings, Johannes
Oct ’24
Reply to CKSyncEngine with dependent CKRecords
Ok, so the order of the added pending changes is guaranteed not to be changed by CKSyncEngine, right? Is there a way to know the batch size before the batch is built? I know that CloutKit will tell you if you try to save a batch that is too large, but that happens async in a different context, so it is quite difficult to map that error to the batch afterwards.
Oct ’24