SwiftUI Cloudkit - simple list records from public Db in view

HI All,


i am brand new to this and am just starting to learn about swiftui in 2020 so have no knowledge of everything that came before.


I have created an app that uses cloudkit. I have a public database with some test data in.


All i am wanting is a very basic explanation of how to get that data from the cloudkit public database into a list in my app.


I have a a record type called Shoes, in the record i have (brand, name, size)


I would like the user to have a list of all shoes that appeer in that database.


I would also appreciate filenames to go along with this if there is code in more than one file as i have been getting a little lost with the best practices of where to put code.


I know this is a big ask but i cannot find anything simple and strightforward out there in this new iteration of a language.


Thanks In Advance,

Kind Regards


Adam

If anyone has any links to useful information for this i would be very greatful.


Apple has the following:


https://developer.apple.com/library/archive/documentation/DataManagement/Conceptual/CloudKitQuickStart/FetchingRecords/FetchingRecords.html#//apple_ref/doc/uid/TP40014987-CH4-SW1


but quit simply, i dont understand how to put it into action.


Kind Regards


Adam

Use this for a basic tutorial on how to communicate with CloudKit: CloudKit Sample

SwiftUI Cloudkit - simple list records from public Db in view
 
 
Q