diff --git a/secant.xcodeproj/project.pbxproj b/secant.xcodeproj/project.pbxproj index 3f033c9..15b13e1 100644 --- a/secant.xcodeproj/project.pbxproj +++ b/secant.xcodeproj/project.pbxproj @@ -107,6 +107,8 @@ F96B41E8273B501F0021B49A /* TransactionDetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F96B41E5273B501F0021B49A /* TransactionDetailView.swift */; }; F96B41E9273B501F0021B49A /* TransactionHistoryView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F96B41E6273B501F0021B49A /* TransactionHistoryView.swift */; }; F96B41EB273B50520021B49A /* Strings.swift in Sources */ = {isa = PBXBuildFile; fileRef = F96B41EA273B50520021B49A /* Strings.swift */; }; + F9971A5F27680DF600A2DB75 /* ScanView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9971A5D27680DF600A2DB75 /* ScanView.swift */; }; + F9971A6027680DF600A2DB75 /* Scan.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9971A5E27680DF600A2DB75 /* Scan.swift */; }; F9971A6527680DFE00A2DB75 /* Settings.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9971A6227680DFE00A2DB75 /* Settings.swift */; }; F9971A6627680DFE00A2DB75 /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9971A6427680DFE00A2DB75 /* SettingsView.swift */; }; F9971A6B27680E1000A2DB75 /* WalletInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9971A6827680E1000A2DB75 /* WalletInfo.swift */; }; @@ -244,6 +246,8 @@ F96B41E5273B501F0021B49A /* TransactionDetailView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TransactionDetailView.swift; sourceTree = ""; }; F96B41E6273B501F0021B49A /* TransactionHistoryView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TransactionHistoryView.swift; sourceTree = ""; }; F96B41EA273B50520021B49A /* Strings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Strings.swift; sourceTree = ""; }; + F9971A5D27680DF600A2DB75 /* ScanView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ScanView.swift; sourceTree = ""; }; + F9971A5E27680DF600A2DB75 /* Scan.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Scan.swift; sourceTree = ""; }; F9971A6227680DFE00A2DB75 /* Settings.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Settings.swift; sourceTree = ""; }; F9971A6427680DFE00A2DB75 /* SettingsView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = ""; }; F9971A6827680E1000A2DB75 /* WalletInfo.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WalletInfo.swift; sourceTree = ""; }; @@ -704,6 +708,7 @@ isa = PBXGroup; children = ( F93874EC273C4DE200F0E875 /* Home */, + F9971A5B27680DF600A2DB75 /* Scan */, F9C165B62740403600592F76 /* Send */, F9971A6127680DFE00A2DB75 /* Settings */, F96B41E2273B501F0021B49A /* TransactionHistory */, @@ -800,6 +805,23 @@ path = Views; sourceTree = ""; }; + F9971A5B27680DF600A2DB75 /* Scan */ = { + isa = PBXGroup; + children = ( + F9971A5C27680DF600A2DB75 /* Views */, + F9971A5E27680DF600A2DB75 /* Scan.swift */, + ); + path = Scan; + sourceTree = ""; + }; + F9971A5C27680DF600A2DB75 /* Views */ = { + isa = PBXGroup; + children = ( + F9971A5D27680DF600A2DB75 /* ScanView.swift */, + ); + path = Views; + sourceTree = ""; + }; F9971A6127680DFE00A2DB75 /* Settings */ = { isa = PBXGroup; children = ( @@ -1086,6 +1108,7 @@ F93874F1273C4DE200F0E875 /* HomeView.swift in Sources */, 0D32282326C586A800262533 /* HistoryScreen.swift in Sources */, 0D3D04082728B3440032ABC1 /* RecoveryPhraseDisplayView.swift in Sources */, + F9971A5F27680DF600A2DB75 /* ScanView.swift in Sources */, 0D864A0A26E154FD00A61879 /* InitFailedScreenViewModel.swift in Sources */, 0DA13CA526C1963000E3B610 /* Balance.swift in Sources */, 2EA11F5B27467EF800709571 /* OnboardingFooterView.swift in Sources */, @@ -1132,6 +1155,7 @@ 0DA13CA226C1955600E3B610 /* HomeScreenViewModel.swift in Sources */, 0D32282926C586E000262533 /* RequestZcashScreenViewModel.swift in Sources */, 0D32281926C5864B00262533 /* ProfileScreen.swift in Sources */, + F9971A6027680DF600A2DB75 /* Scan.swift in Sources */, F9C165CB2741AB5D00592F76 /* SendView.swift in Sources */, F9971A6527680DFE00A2DB75 /* Settings.swift in Sources */, 6654C7412715A47300901167 /* Onboarding.swift in Sources */, diff --git a/secant/Features/Home/HomeStore.swift b/secant/Features/Home/HomeStore.swift index 9acaac9..0addc42 100644 --- a/secant/Features/Home/HomeStore.swift +++ b/secant/Features/Home/HomeStore.swift @@ -6,6 +6,7 @@ struct HomeState: Equatable { case history case send case recoveryPhraseDisplay + case scan } var transactionHistoryState: TransactionHistoryState var route: Route? diff --git a/secant/Features/Home/Views/HomeView.swift b/secant/Features/Home/Views/HomeView.swift index a9f9f39..0dfb5b6 100644 --- a/secant/Features/Home/Views/HomeView.swift +++ b/secant/Features/Home/Views/HomeView.swift @@ -30,6 +30,8 @@ struct HomeView: View { ) case .recoveryPhraseDisplay: RecoveryPhraseDisplayView(store: .demo) + case .scan: + ScanView() } } diff --git a/secant/Features/Scan/Scan.swift b/secant/Features/Scan/Scan.swift new file mode 100644 index 0000000..6188789 --- /dev/null +++ b/secant/Features/Scan/Scan.swift @@ -0,0 +1,38 @@ +import ComposableArchitecture + +struct ScanState: Equatable { +} + +enum ScanAction: Equatable { + case noOp +} + +struct ScanEnvironment: Equatable { +} + +// MARK: - ScanReducer + +typealias ScanReducer = Reducer + +extension ScanReducer { + static let `default` = ScanReducer { state, action, environment in + switch action { + default: + return .none + } + } +} + +// MARK: - ScanStore + +typealias ScanStore = Store + +extension ScanStore { +} + +// MARK: - ScanViewStore + +typealias ScanViewStore = ViewStore + +extension ScanViewStore { +} diff --git a/secant/Features/Scan/Views/ScanView.swift b/secant/Features/Scan/Views/ScanView.swift new file mode 100644 index 0000000..5974a1b --- /dev/null +++ b/secant/Features/Scan/Views/ScanView.swift @@ -0,0 +1,13 @@ +import SwiftUI + +struct ScanView: View { + var body: some View { + Text("\(String(describing: Self.self)) PlaceHolder") + } +} + +struct ScanView_Previews: PreviewProvider { + static var previews: some View { + ScanView() + } +}