From 202808097cff2b1dc204d53d51517af06ae025fa Mon Sep 17 00:00:00 2001 From: Daniel Haight Date: Tue, 14 Dec 2021 00:39:00 +0000 Subject: [PATCH] Add WalletInfo placeholder feature This is boiler plate to flesh out a feature to navigate to --- secant.xcodeproj/project.pbxproj | 24 ++++++++++++ .../WalletInfo/Views/WalletInfoView.swift | 13 +++++++ secant/Features/WalletInfo/WalletInfo.swift | 38 +++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 secant/Features/WalletInfo/Views/WalletInfoView.swift create mode 100644 secant/Features/WalletInfo/WalletInfo.swift diff --git a/secant.xcodeproj/project.pbxproj b/secant.xcodeproj/project.pbxproj index 0765707..4146934 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 */; }; + F9971A6B27680E1000A2DB75 /* WalletInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9971A6827680E1000A2DB75 /* WalletInfo.swift */; }; + F9971A6C27680E1000A2DB75 /* WalletInfoView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9971A6A27680E1000A2DB75 /* WalletInfoView.swift */; }; F9C165B4274031F600592F76 /* Bindings.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9C165B3274031F600592F76 /* Bindings.swift */; }; F9C165BF2740403600592F76 /* SendStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9C165B72740403600592F76 /* SendStore.swift */; }; F9C165C02740403600592F76 /* ApproveView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9C165B92740403600592F76 /* ApproveView.swift */; }; @@ -240,6 +242,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 = ""; }; + F9971A6827680E1000A2DB75 /* WalletInfo.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WalletInfo.swift; sourceTree = ""; }; + F9971A6A27680E1000A2DB75 /* WalletInfoView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WalletInfoView.swift; sourceTree = ""; }; F9C165B3274031F600592F76 /* Bindings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Bindings.swift; sourceTree = ""; }; F9C165B72740403600592F76 /* SendStore.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SendStore.swift; sourceTree = ""; }; F9C165B92740403600592F76 /* ApproveView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ApproveView.swift; sourceTree = ""; }; @@ -700,6 +704,7 @@ F96B41E2273B501F0021B49A /* TransactionHistory */, 0D3D04052728B2D70032ABC1 /* BackupFlow */, 6654C73C2715A3FA00901167 /* Onboarding */, + F9971A6727680E1000A2DB75 /* WalletInfo */, ); path = Features; sourceTree = ""; @@ -790,6 +795,23 @@ path = Views; sourceTree = ""; }; + F9971A6727680E1000A2DB75 /* WalletInfo */ = { + isa = PBXGroup; + children = ( + F9971A6827680E1000A2DB75 /* WalletInfo.swift */, + F9971A6927680E1000A2DB75 /* Views */, + ); + path = WalletInfo; + sourceTree = ""; + }; + F9971A6927680E1000A2DB75 /* Views */ = { + isa = PBXGroup; + children = ( + F9971A6A27680E1000A2DB75 /* WalletInfoView.swift */, + ); + path = Views; + sourceTree = ""; + }; F9C165B62740403600592F76 /* Send */ = { isa = PBXGroup; children = ( @@ -1028,6 +1050,7 @@ F93874F0273C4DE200F0E875 /* HomeStore.swift in Sources */, 669FDAEB272C23C2007B9422 /* CircularFrameBadge.swift in Sources */, 0D864A0E26E1583000A61879 /* LoadingScreen.swift in Sources */, + F9971A6C27680E1000A2DB75 /* WalletInfoView.swift in Sources */, 0DA13C9C26C1942100E3B610 /* BackupWalletScreen.swift in Sources */, 0DA13C9826C186FF00E3B610 /* RestoreWalletScreenViewModel.swift in Sources */, F9EEB8162742C2210032EEB8 /* WithStateBinding.swift in Sources */, @@ -1065,6 +1088,7 @@ F9C165C02740403600592F76 /* ApproveView.swift in Sources */, 0DF2DC5427235E3E00FA31E2 /* View+InnerShadow.swift in Sources */, 0D32281A26C5864B00262533 /* ProfileScreenViewModel.swift in Sources */, + F9971A6B27680E1000A2DB75 /* WalletInfo.swift in Sources */, 0D185819272723FF0046B928 /* BlueChip.swift in Sources */, 0D864A0F26E1583000A61879 /* LoadingScreenViewModel.swift in Sources */, 2EA11F5D27467F7700709571 /* OnboardingContentView.swift in Sources */, diff --git a/secant/Features/WalletInfo/Views/WalletInfoView.swift b/secant/Features/WalletInfo/Views/WalletInfoView.swift new file mode 100644 index 0000000..b2d2335 --- /dev/null +++ b/secant/Features/WalletInfo/Views/WalletInfoView.swift @@ -0,0 +1,13 @@ +import SwiftUI + +struct WalletInfoView: View { + var body: some View { + Text("\(String(describing: Self.self)) PlaceHolder") + } +} + +struct WalletInfoView_Previews: PreviewProvider { + static var previews: some View { + WalletInfoView() + } +} diff --git a/secant/Features/WalletInfo/WalletInfo.swift b/secant/Features/WalletInfo/WalletInfo.swift new file mode 100644 index 0000000..134b6a6 --- /dev/null +++ b/secant/Features/WalletInfo/WalletInfo.swift @@ -0,0 +1,38 @@ +import ComposableArchitecture + +struct WalletInfoState: Equatable { +} + +enum WalletInfoAction: Equatable { + case noOp +} + +struct WalletInfoEnvironment: Equatable { +} + +// MARK: - WalletInfoReducer + +typealias WalletInfoReducer = Reducer + +extension WalletInfoReducer { + static let `default` = WalletInfoReducer { state, action, environment in + switch action { + default: + return .none + } + } +} + +// MARK: - WalletInfoStore + +typealias WalletInfoStore = Store + +extension WalletInfoStore { +} + +// MARK: - WalletInfoViewStore + +typealias WalletInfoViewStore = ViewStore + +extension WalletInfoViewStore { +}