Simple SwiftUI iOS script for saving SQLite database to user's iCloud -- 3

Job ID: 37856785

Budget: $10 – $100 USD

I created a SwiftUI script with the help of chatGPT but I don’t know if it works. The script is attached in the project files.

Can you create me a simple swiftUI script using CloudKit with just a simple page with 3 text boxes and an ‘add’ button.

There should be a SQLite data base with 3 tables.

When I click ‘add’ button, the text in the 3 boxes will be saved to the 3 tables in SQLite.

The page will also have a ‘view’ button that print all records of all 3 tables.

There will also be 3 buttons: ‘partial’, ‘full’, and ‘export’. If click on ‘partial’ then it will save a copy of the SQLite database to the user’s iCloud but will only save table 1 and 2. If click ‘full’, it will save a copy of the SQLite database to the user’s iCloud and will include all 3 tables. If click ‘export’, then it will save a full copy of the SQLite database to the user’s device file manager.

There will also be a section that lists all the versions saved to iCloud. There will be a ‘restore’ button for each version. If click ‘restore’, then it will overwrite the current SQLite data with the selected saved version. If the version is only a ‘partial’ version, then it will only overwrite table 1 and 2.

------------------------

Refer to iCloud-script.txt for a script that you can use.
Related categories: PHP Mobile App Development iPhone Objective C iPad