Mercurial > public > simoleon
comparison Simoleon/Persistence.swift @ 53:b0bce2c8e4a9
Refactor UK spelling to US
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Tue, 27 Jul 2021 09:44:51 +0100 |
parents | 75c1a05176f6 |
children | ecc58b9cd89d |
comparison
equal
deleted
inserted
replaced
52:3fa127885e60 | 53:b0bce2c8e4a9 |
---|---|
17 let newItem = Item(context: viewContext) | 17 let newItem = Item(context: viewContext) |
18 newItem.timestamp = Date() | 18 newItem.timestamp = Date() |
19 } | 19 } |
20 | 20 |
21 for _ in 0..<10 { | 21 for _ in 0..<10 { |
22 let favourite = Favourite(context: viewContext) | 22 let favorite = Favorite(context: viewContext) |
23 favourite.currencyPair = "USD/GBP" | 23 favorite.currencyPair = "USD/GBP" |
24 } | 24 } |
25 do { | 25 do { |
26 try viewContext.save() | 26 try viewContext.save() |
27 } catch { | 27 } catch { |
28 // Replace this implementation with code to handle the error appropriately. | 28 // Replace this implementation with code to handle the error appropriately. |