Mercurial > public > lazybear
diff LazyBear/Persistence.swift @ 465:6953d83060a4
New design
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sat, 17 Jul 2021 17:58:57 +0100 |
parents | 783b567800d9 |
children |
line wrap: on
line diff
--- a/LazyBear/Persistence.swift Sat Jul 17 09:33:44 2021 +0100 +++ b/LazyBear/Persistence.swift Sat Jul 17 17:58:57 2021 +0100 @@ -17,6 +17,12 @@ let newItem = Item(context: viewContext) newItem.timestamp = Date() } + + for _ in 0..<10 { + let company = Company(context: viewContext) + company.symbol = "AAPL" + company.companyName = "Apple Inc" + } do { try viewContext.save() } catch {