Put update to UserDefaults on main thread.

This commit is contained in:
Maurice Parker 2020-04-04 16:05:52 -05:00
parent 2a6e1078aa
commit 5273187033
1 changed files with 3 additions and 1 deletions

View File

@ -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
}
}
}