From ac0d659246ae1186dd185a72ec94e72667239fd7 Mon Sep 17 00:00:00 2001 From: Alan Maynard Date: Thu, 31 Jan 2019 16:14:04 -0500 Subject: [PATCH] hotfix: Change project file settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - `Transaction.swift` and `Account.swift` files were set to “absolute path” for file location. Changed them to “relative to group” - small error fixed that was created when copying `Account` over from demo project --- .../SynchronyFinancial.xcodeproj/project.pbxproj | 4 ++-- SynchronyFinancial/SynchronyFinancial/Account.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SynchronyFinancial/SynchronyFinancial.xcodeproj/project.pbxproj b/SynchronyFinancial/SynchronyFinancial.xcodeproj/project.pbxproj index b91c5da..7d91588 100644 --- a/SynchronyFinancial/SynchronyFinancial.xcodeproj/project.pbxproj +++ b/SynchronyFinancial/SynchronyFinancial.xcodeproj/project.pbxproj @@ -74,8 +74,8 @@ 250BDAF6AD4E1CCA82995E30 /* Pods-SynchronyFinancial WatchKit Extension.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SynchronyFinancial WatchKit Extension.release.xcconfig"; path = "Pods/Target Support Files/Pods-SynchronyFinancial WatchKit Extension/Pods-SynchronyFinancial WatchKit Extension.release.xcconfig"; sourceTree = ""; }; 396A16E056D05DEC937A07DA /* Pods-SynchronyFinancial.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SynchronyFinancial.release.xcconfig"; path = "Pods/Target Support Files/Pods-SynchronyFinancial/Pods-SynchronyFinancial.release.xcconfig"; sourceTree = ""; }; 4EA10823B2E5A7A4FEF31740 /* libPods-SynchronyFinancial WatchKit App.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-SynchronyFinancial WatchKit App.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 6717460921F8FCBE00696468 /* Transaction.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = Transaction.swift; path = /Users/alanmaynard/SynchronyFinancialWatchApp/SynchronyFinancial/SynchronyFinancial/Transaction.swift; sourceTree = ""; }; - 6717460B21F8FCC100696468 /* Account.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = Account.swift; path = /Users/alanmaynard/SynchronyFinancialWatchApp/SynchronyFinancial/SynchronyFinancial/Account.swift; sourceTree = ""; }; + 6717460921F8FCBE00696468 /* Transaction.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Transaction.swift; sourceTree = ""; }; + 6717460B21F8FCC100696468 /* Account.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Account.swift; sourceTree = ""; }; 673F396C21A644460051469E /* MainMenuInterfaceController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainMenuInterfaceController.swift; sourceTree = ""; }; 673F396F21A652A00051469E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 67BAC265219E254700713FEF /* SynchronyFinancial.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SynchronyFinancial.app; sourceTree = BUILT_PRODUCTS_DIR; }; diff --git a/SynchronyFinancial/SynchronyFinancial/Account.swift b/SynchronyFinancial/SynchronyFinancial/Account.swift index bed796e..3aa4941 100644 --- a/SynchronyFinancial/SynchronyFinancial/Account.swift +++ b/SynchronyFinancial/SynchronyFinancial/Account.swift @@ -19,7 +19,7 @@ class Account: NSObject { self.accountNumber = accountNumber self.limit = limit self.transactions = transactions - self.accountBalance = transactions.map { $0.amount }.reduce(0.0, +) + self.balance = transactions.map { $0.amount }.reduce(0.0, +) self.paymentDueDate = paymentDueDate self.cycleEndDate = cycleEndDate }