I found one Stackoverflow article that kinda helps but this only works for 1 line text not multiline
https://stackoverflow.com/questions/57270900/aligning-texts-and-images-in-swiftui
Post
Replies
Boosts
Views
Activity
Xcode 11.6
I was able to get this working by removing subFolders in my project and leaving all in the main Folder.
Example:
my apps MAIN folder i had another folder inside called HOME, this made it that nothing in the HOME folder autocomplete,
I had to remove the files from the HOME folder and just leave them in the MAIN app folder and was able to get Autocomplete working again
If you Changed the name of your .xcdatamodel file ensure that the same name you changed it to is used when making your container in AppDelegate.swift as below
let container = NSPersistentCloudKitContainer(name: "Same Name ")
I had to add NSPresistentCloudKitContainerOptions.databaseScope = .public to make it public
I was able to get it working and heard it as expected on my physical device with VoiceOver but Accesibilty Inspector didn’t announce the “dim” part it only said “ button title, Button”
I don't think you can delete the original User Record Type in CloudKit BUT if you made your own you can!
Make your own record Type then set a ID to it(you can use your ID that's linked to the original User record by getting it using :
Lets call our own user record UserInfo ;)
public let container = CKContainer.init(identifier: "cloudkitIDDBName")
guard let recordID = recordID, error == nil else { return}
DispatchQueue.main.async {
self.cloudkitUserRecordID = recordID
}
}
Once you get the recordID save that somewhere in a property or something then when you create a User:)
Then save a new UserInfo (our own user record type) with the user's info you want to save something like below:
firstTimeUserRecord["userID"] = recordID
firstTimeUserRecord["username"] = username
container.publicCloudDatabase.save(firstTimeUserRecord) { newUserRecord, error in
//etc
}
then when you want to delete you can do like below
container.publicCloudDatabase.delete(withRecordID: self.recordID) { record, error in
//handle your errors :/etc
}
no we still can't delete containers , I have sooo many from tutorials when I was learning about Cloudkit
Please @Apple update CloudKit for WWDC 😭
1.Update the CloudKit Dashboard UI!!
2.Include more Publishers usage with Cloudkit
3.Ability to Delete old Containers!
4. Real Time updates!
5. Destroy Firebase 😈