-
Based on 05-ImageEditDemo, modified to save using JSON
-
JSON saving code extracted from 06-ChipsSaveJSON
-
SaveLoadJSON.swift
- // Write a value to file that will be stored in the documents directory as JSON
- // Read a value stored as JSON from a file in the documents directory
example JSON file in project
model.json
# Examine JSON file using Terminal App
# copy json file to Downloads folder
cp /Users/jht2/Library/Developer/CoreSimulator/Devices/A61E8277-3C67-469A-9B16-E7B6136F8327/data/Containers/Data/Application/AAD92999-F7F5-44E2-8D97-34814370FEEB/Documents/model.json ~/Downloads/.