comparison LazyBear/Persistence.swift @ 425:4effac4733b0

Changing keys from API responses
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Wed, 16 Jun 2021 13:46:01 +0200
parents d402bfa367c2
children 783b567800d9
comparison
equal deleted inserted replaced
424:6dd97877f575 425:4effac4733b0
20 20
21 for _ in 0..<10 { 21 for _ in 0..<10 {
22 let watchlistCompany = WatchlistCompany(context: viewContext) 22 let watchlistCompany = WatchlistCompany(context: viewContext)
23 watchlistCompany.name = "Apple Inc" 23 watchlistCompany.name = "Apple Inc"
24 watchlistCompany.symbol = "AAPL" 24 watchlistCompany.symbol = "AAPL"
25 watchlistCompany.watchlist = "Technologies" 25 watchlistCompany.watchlistName = "Technologies"
26 } 26 }
27 do { 27 do {
28 try viewContext.save() 28 try viewContext.save()
29 } catch { 29 } catch {
30 // Replace this implementation with code to handle the error appropriately. 30 // Replace this implementation with code to handle the error appropriately.