Put update to UserDefaults on main thread.
This commit is contained in:
parent
2a6e1078aa
commit
5273187033
|
@ -32,7 +32,9 @@ extension CKContainer {
|
|||
guard let recordID = recordID, error == nil else {
|
||||
return
|
||||
}
|
||||
self.userRecordID = recordID.recordName
|
||||
DispatchQueue.main.async {
|
||||
self.userRecordID = recordID.recordName
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue