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