Post

Replies

Boosts

Views

Activity

CKSyncEngine doesn't send changes until app restarts
I've noticed that new record saves added using add(pendingRecordZoneChanges:) while handling events such as sentRecordZoneChanges or fetchedRecordZoneChanges aren't processed by CKSyncEngine until the app restarts, i.e. the app process has to be terminated and started again for CKSyncEngine to actually attempt to send the pending record saves. This started happening ever since I updated iOS and macOS to 26.5. Is this by design or a bug I should report?
1
0
132
1w
Does CKSyncEngine have to be re-initialized after an account change event?
According to this comment in the sample project on GitHub and this answer by Apple Staff, CKSyncEngine should be re-initialized after signing out or switching accounts so that "CKSyncEngine schedules a new fetch on init." But according to my tests, CKSyncEngine will schedule a fetch after having a signed out and signed in again, without me ever having to reset the serialized sync state. The documentation doesn't mentioned anywhere that CKSyncEngine should be re-initialized after an account change. In fact, it states that CKSyncEngine will reset its state internally on account changes. So if that's the case, then I'm very confused as to why the "official" recommendation is to re-initialize CKSyncEngine after receiving .signOut or .accountSwitch. Can someone please clarify the correct approach here?
1
0
433
Apr ’26
Unable to use hardware keyboard in Xcode 12 live previews
I am unable to use the hardware keyboard to enter text in text fields when using Xcode 12 live previews. Same issue with all preview devices. Running on macOS 10.15.5. Is there an option I am missing or a workaround for this? import SwiftUI struct ContentView: View { @State private var text = "" var body: some View { Form { TextField("Write something", text: $text) } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
7
0
3.9k
Jan ’22
CKSyncEngine doesn't send changes until app restarts
I've noticed that new record saves added using add(pendingRecordZoneChanges:) while handling events such as sentRecordZoneChanges or fetchedRecordZoneChanges aren't processed by CKSyncEngine until the app restarts, i.e. the app process has to be terminated and started again for CKSyncEngine to actually attempt to send the pending record saves. This started happening ever since I updated iOS and macOS to 26.5. Is this by design or a bug I should report?
Replies
1
Boosts
0
Views
132
Activity
1w
Does CKSyncEngine have to be re-initialized after an account change event?
According to this comment in the sample project on GitHub and this answer by Apple Staff, CKSyncEngine should be re-initialized after signing out or switching accounts so that "CKSyncEngine schedules a new fetch on init." But according to my tests, CKSyncEngine will schedule a fetch after having a signed out and signed in again, without me ever having to reset the serialized sync state. The documentation doesn't mentioned anywhere that CKSyncEngine should be re-initialized after an account change. In fact, it states that CKSyncEngine will reset its state internally on account changes. So if that's the case, then I'm very confused as to why the "official" recommendation is to re-initialize CKSyncEngine after receiving .signOut or .accountSwitch. Can someone please clarify the correct approach here?
Replies
1
Boosts
0
Views
433
Activity
Apr ’26
Unable to use hardware keyboard in Xcode 12 live previews
I am unable to use the hardware keyboard to enter text in text fields when using Xcode 12 live previews. Same issue with all preview devices. Running on macOS 10.15.5. Is there an option I am missing or a workaround for this? import SwiftUI struct ContentView: View { @State private var text = "" var body: some View { Form { TextField("Write something", text: $text) } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
Replies
7
Boosts
0
Views
3.9k
Activity
Jan ’22