Mercurial > public > lazybear
changeset 161:26d69711ea66
Change name Core Data
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Wed, 17 Feb 2021 19:18:53 +0100 |
parents | f44d84affd00 |
children | 6488392684cc |
files | LazyBear.xcodeproj/project.pbxproj LazyBear.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate lazybear/LazyBear.xcdatamodeld/LazyBear.xcdatamodel/contents lazybear/Persistence.swift |
diffstat | 4 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/LazyBear.xcodeproj/project.pbxproj Wed Feb 17 19:14:30 2021 +0100 +++ b/LazyBear.xcodeproj/project.pbxproj Wed Feb 17 19:18:53 2021 +0100 @@ -200,6 +200,7 @@ /* Begin XCBuildConfiguration section */ 95B04EBC2521236A000AD27F /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 95FF4EA925DD94430013319E /* Sandbox.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; @@ -261,6 +262,7 @@ }; 95B04EBD2521236A000AD27F /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 95FF4EAA25DD94720013319E /* Production.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES;
Binary file LazyBear.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate has changed
--- a/lazybear/LazyBear.xcdatamodeld/LazyBear.xcdatamodel/contents Wed Feb 17 19:14:30 2021 +0100 +++ b/lazybear/LazyBear.xcdatamodeld/LazyBear.xcdatamodel/contents Wed Feb 17 19:18:53 2021 +0100 @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="17709" systemVersion="20D74" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier=""> - <entity name="SavedCompanies" representedClassName="SavedCompanies" syncable="YES" codeGenerationType="class"> + <entity name="WatchlistCompanies" representedClassName="WatchlistCompanies" syncable="YES" codeGenerationType="class"> <attribute name="name" optional="YES" attributeType="String"/> <attribute name="symbol" optional="YES" attributeType="String"/> </entity> <elements> - <element name="SavedCompanies" positionX="-63" positionY="-18" width="128" height="59"/> + <element name="WatchlistCompanies" positionX="-63" positionY="-18" width="128" height="59"/> </elements> </model> \ No newline at end of file
--- a/lazybear/Persistence.swift Wed Feb 17 19:14:30 2021 +0100 +++ b/lazybear/Persistence.swift Wed Feb 17 19:18:53 2021 +0100 @@ -14,9 +14,9 @@ let result = PersistenceController(inMemory: true) let viewContext = result.container.viewContext for _ in 0..<2 { - let savedCompanies = SavedCompanies(context: viewContext) - savedCompanies.name = "apple inc" - savedCompanies.symbol = "aapl" + let watchlistCompanies = WatchlistCompanies(context: viewContext) + watchlistCompanies.name = "apple inc" + watchlistCompanies.symbol = "aapl" } do { try viewContext.save()