-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
720 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
igoMoney/igoMoney/Resource/Assets.xcassets/default_profile.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "default_profile.svg", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
}, | ||
"properties" : { | ||
"template-rendering-intent" : "original" | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
.../igoMoney/Resource/Assets.xcassets/default_profile.imageset/default_profile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions
20
igoMoney/igoMoney/Resource/Assets.xcassets/gray.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "0x45", | ||
"green" : "0x45", | ||
"red" : "0x45" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
igoMoney/igoMoney/Resource/Assets.xcassets/gray2.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "0x64", | ||
"green" : "0x64", | ||
"red" : "0x64" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
igoMoney/igoMoney/Source/ChallengeScene/ChallengeCore.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// ChallengeCore.swift | ||
// igoMoney | ||
// | ||
// Copyright (c) 2023 Minii All rights reserved. | ||
|
||
import ComposableArchitecture | ||
import SwiftUI | ||
|
||
struct ChallengeCore: Reducer { | ||
struct State: Equatable { | ||
var myChallengeState = MyChallengeSectionCore.State(color: .red) | ||
var emptyChallengeListState = EmptyChallengeListSectionCore.State() | ||
} | ||
|
||
enum Action { | ||
case myChallengeAction(MyChallengeSectionCore.Action) | ||
case emptyChallengeAction(EmptyChallengeListSectionCore.Action) | ||
} | ||
|
||
var body: some Reducer<State, Action> { | ||
Reduce { state, action in | ||
switch action { | ||
case .myChallengeAction: | ||
return .none | ||
case .emptyChallengeAction: | ||
return .none | ||
} | ||
} | ||
|
||
Scope(state: \.myChallengeState, action: /Action.myChallengeAction) { | ||
MyChallengeSectionCore() | ||
} | ||
|
||
Scope(state: \.emptyChallengeListState, action: /Action.emptyChallengeAction) { | ||
EmptyChallengeListSectionCore() | ||
} | ||
} | ||
} |
Oops, something went wrong.