parent
7967fac627
commit
60f19a360d
|
@ -3261,6 +3261,7 @@
|
||||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
|
DEVELOPMENT_TEAM = "";
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||||
"DEBUG=1",
|
"DEBUG=1",
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
|
@ -3287,6 +3288,7 @@
|
||||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
|
DEVELOPMENT_TEAM = "";
|
||||||
INFOPLIST_FILE = secantTests/Info.plist;
|
INFOPLIST_FILE = secantTests/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
@ -3307,6 +3309,7 @@
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
|
DEVELOPMENT_TEAM = "";
|
||||||
INFOPLIST_FILE = secantUITests/Info.plist;
|
INFOPLIST_FILE = secantUITests/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
@ -3327,6 +3330,7 @@
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
|
DEVELOPMENT_TEAM = "";
|
||||||
INFOPLIST_FILE = secantUITests/Info.plist;
|
INFOPLIST_FILE = secantUITests/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
|
|
@ -18,7 +18,6 @@ struct HomeReducer: ReducerProtocol {
|
||||||
case request
|
case request
|
||||||
case transactionHistory
|
case transactionHistory
|
||||||
case send
|
case send
|
||||||
case scan
|
|
||||||
case balanceBreakdown
|
case balanceBreakdown
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,7 +63,6 @@ struct HomeReducer: ReducerProtocol {
|
||||||
case request(RequestReducer.Action)
|
case request(RequestReducer.Action)
|
||||||
case rewindDone(Bool, SettingsReducer.Action)
|
case rewindDone(Bool, SettingsReducer.Action)
|
||||||
case send(SendFlowReducer.Action)
|
case send(SendFlowReducer.Action)
|
||||||
case scan(ScanReducer.Action)
|
|
||||||
case synchronizerStateChanged(SDKSynchronizerState)
|
case synchronizerStateChanged(SDKSynchronizerState)
|
||||||
case walletEvents(WalletEventsFlowReducer.Action)
|
case walletEvents(WalletEventsFlowReducer.Action)
|
||||||
case updateDestination(HomeReducer.State.Destination?)
|
case updateDestination(HomeReducer.State.Destination?)
|
||||||
|
@ -87,10 +85,6 @@ struct HomeReducer: ReducerProtocol {
|
||||||
SendFlowReducer()
|
SendFlowReducer()
|
||||||
}
|
}
|
||||||
|
|
||||||
Scope(state: \.scanState, action: /Action.scan) {
|
|
||||||
ScanReducer()
|
|
||||||
}
|
|
||||||
|
|
||||||
Scope(state: \.profileState, action: /Action.profile) {
|
Scope(state: \.profileState, action: /Action.profile) {
|
||||||
ProfileReducer()
|
ProfileReducer()
|
||||||
}
|
}
|
||||||
|
@ -184,13 +178,6 @@ struct HomeReducer: ReducerProtocol {
|
||||||
case .send:
|
case .send:
|
||||||
return .none
|
return .none
|
||||||
|
|
||||||
case .scan(.found):
|
|
||||||
audioServices.systemSoundVibrate()
|
|
||||||
return EffectTask(value: .updateDestination(nil))
|
|
||||||
|
|
||||||
case .scan:
|
|
||||||
return .none
|
|
||||||
|
|
||||||
case .balanceBreakdown(.onDisappear):
|
case .balanceBreakdown(.onDisappear):
|
||||||
state.destination = nil
|
state.destination = nil
|
||||||
return .none
|
return .none
|
||||||
|
@ -236,13 +223,6 @@ extension HomeStore {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
func scanStore() -> ScanStore {
|
|
||||||
self.scope(
|
|
||||||
state: \.scanState,
|
|
||||||
action: HomeReducer.Action.scan
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
func balanceBreakdownStore() -> BalanceBreakdownStore {
|
func balanceBreakdownStore() -> BalanceBreakdownStore {
|
||||||
self.scope(
|
self.scope(
|
||||||
state: \.balanceBreakdownState,
|
state: \.balanceBreakdownState,
|
||||||
|
|
|
@ -8,8 +8,6 @@ struct HomeView: View {
|
||||||
WithViewStore(store) { viewStore in
|
WithViewStore(store) { viewStore in
|
||||||
VStack {
|
VStack {
|
||||||
ZStack {
|
ZStack {
|
||||||
scanButton(viewStore)
|
|
||||||
|
|
||||||
profileButton(viewStore)
|
profileButton(viewStore)
|
||||||
|
|
||||||
circularArea(viewStore)
|
circularArea(viewStore)
|
||||||
|
@ -94,28 +92,6 @@ extension HomeView {
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func scanButton(_ viewStore: HomeViewStore) -> some View {
|
|
||||||
VStack {
|
|
||||||
HStack {
|
|
||||||
Image(Asset.Assets.Icons.qrCode.name)
|
|
||||||
.resizable()
|
|
||||||
.frame(width: 40, height: 40)
|
|
||||||
.padding(.top, 7)
|
|
||||||
.padding(.leading, 22)
|
|
||||||
.navigationLink(
|
|
||||||
isActive: viewStore.bindingForDestination(.scan),
|
|
||||||
destination: {
|
|
||||||
ScanView(store: store.scanStore())
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
Spacer()
|
|
||||||
}
|
|
||||||
|
|
||||||
Spacer()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func circularArea(_ viewStore: HomeViewStore) -> some View {
|
func circularArea(_ viewStore: HomeViewStore) -> some View {
|
||||||
VStack {
|
VStack {
|
||||||
|
|
Loading…
Reference in New Issue