diff --git a/TemplateProject.xcodeproj/project.pbxproj b/TemplateProject.xcodeproj/project.pbxproj index bdb9b81..6b7669c 100644 --- a/TemplateProject.xcodeproj/project.pbxproj +++ b/TemplateProject.xcodeproj/project.pbxproj @@ -60,7 +60,7 @@ 142350EC2009668500930F1D /* TemplateProjectTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TemplateProjectTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 142350F22009668500930F1D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 1456E4B4200A7F2200DCF2AF /* DynamicValue.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DynamicValue.swift; sourceTree = ""; }; - 148CF5E5220A8EEA001DE84B /* FileDataService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FileDataService.swift; path = ../../../../../Desktop/FileDataService.swift; sourceTree = ""; }; + 148CF5E5220A8EEA001DE84B /* FileDataService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FileDataService.swift; sourceTree = ""; }; 14917E0B200A489A00234393 /* Result.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Result.swift; sourceTree = ""; }; 14917E0D200A48AB00234393 /* ErrorResult.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ErrorResult.swift; sourceTree = ""; }; 14917E10200A491C00234393 /* RequestFactory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RequestFactory.swift; sourceTree = ""; }; diff --git a/TemplateProject/Service/FileDataService.swift b/TemplateProject/Service/FileDataService.swift index 80ac30a..122b6df 100644 --- a/TemplateProject/Service/FileDataService.swift +++ b/TemplateProject/Service/FileDataService.swift @@ -10,6 +10,8 @@ import Foundation final class FileDataService : CurrencyServiceProtocol { + static let shared = FileDataService() + func fetchConverter(_ completion: @escaping ((Result) -> Void)) { // giving a sample json file