Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var worldAnchors: [UUID: String] = [:]
- func saveWorldAnchors() {
- let encoder = JSONEncoder()
- do {
- let jsonString = try encoder.encode(worldAnchors)
- let filePath = // define your filepath here
- do {
- try jsonString.write(to: filePath)
- } catch {
- print(error)
- }
- } catch {
- print(error)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement