Add Scan placeholder feature
This is boiler plate to flesh out a feature to navigate to
This commit is contained in:
parent
20cc378ee9
commit
9720e8c59b
|
@ -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 = "<group>"; };
|
||||
F96B41E6273B501F0021B49A /* TransactionHistoryView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TransactionHistoryView.swift; sourceTree = "<group>"; };
|
||||
F96B41EA273B50520021B49A /* Strings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Strings.swift; sourceTree = "<group>"; };
|
||||
F9971A5D27680DF600A2DB75 /* ScanView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ScanView.swift; sourceTree = "<group>"; };
|
||||
F9971A5E27680DF600A2DB75 /* Scan.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Scan.swift; sourceTree = "<group>"; };
|
||||
F9971A6227680DFE00A2DB75 /* Settings.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Settings.swift; sourceTree = "<group>"; };
|
||||
F9971A6427680DFE00A2DB75 /* SettingsView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = "<group>"; };
|
||||
F9971A6827680E1000A2DB75 /* WalletInfo.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WalletInfo.swift; sourceTree = "<group>"; };
|
||||
|
@ -704,6 +708,7 @@
|
|||
isa = PBXGroup;
|
||||
children = (
|
||||
F93874EC273C4DE200F0E875 /* Home */,
|
||||
F9971A5B27680DF600A2DB75 /* Scan */,
|
||||
F9C165B62740403600592F76 /* Send */,
|
||||
F9971A6127680DFE00A2DB75 /* Settings */,
|
||||
F96B41E2273B501F0021B49A /* TransactionHistory */,
|
||||
|
@ -800,6 +805,23 @@
|
|||
path = Views;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
F9971A5B27680DF600A2DB75 /* Scan */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F9971A5C27680DF600A2DB75 /* Views */,
|
||||
F9971A5E27680DF600A2DB75 /* Scan.swift */,
|
||||
);
|
||||
path = Scan;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
F9971A5C27680DF600A2DB75 /* Views */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F9971A5D27680DF600A2DB75 /* ScanView.swift */,
|
||||
);
|
||||
path = Views;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
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 */,
|
||||
|
|
|
@ -6,6 +6,7 @@ struct HomeState: Equatable {
|
|||
case history
|
||||
case send
|
||||
case recoveryPhraseDisplay
|
||||
case scan
|
||||
}
|
||||
var transactionHistoryState: TransactionHistoryState
|
||||
var route: Route?
|
||||
|
|
|
@ -30,6 +30,8 @@ struct HomeView: View {
|
|||
)
|
||||
case .recoveryPhraseDisplay:
|
||||
RecoveryPhraseDisplayView(store: .demo)
|
||||
case .scan:
|
||||
ScanView()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
import ComposableArchitecture
|
||||
|
||||
struct ScanState: Equatable {
|
||||
}
|
||||
|
||||
enum ScanAction: Equatable {
|
||||
case noOp
|
||||
}
|
||||
|
||||
struct ScanEnvironment: Equatable {
|
||||
}
|
||||
|
||||
// MARK: - ScanReducer
|
||||
|
||||
typealias ScanReducer = Reducer<ScanState, ScanAction, ScanEnvironment>
|
||||
|
||||
extension ScanReducer {
|
||||
static let `default` = ScanReducer { state, action, environment in
|
||||
switch action {
|
||||
default:
|
||||
return .none
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - ScanStore
|
||||
|
||||
typealias ScanStore = Store<ScanState, ScanAction>
|
||||
|
||||
extension ScanStore {
|
||||
}
|
||||
|
||||
// MARK: - ScanViewStore
|
||||
|
||||
typealias ScanViewStore = ViewStore<ScanState, ScanAction>
|
||||
|
||||
extension ScanViewStore {
|
||||
}
|
|
@ -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()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue