-
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
1 parent
3254877
commit d5b5812
Showing
12 changed files
with
274 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>com.apple.developer.applesignin</key> | ||
<array> | ||
<string>Default</string> | ||
</array> | ||
</dict> | ||
</plist> |
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
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
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
Targets/D3N/Sources/Feature/Onboarding/Nickname/OnboardingNicknameStore.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 @@ | ||
// | ||
// OnboardingNicknameStore.swift | ||
// D3N | ||
// | ||
// Created by 송영모 on 10/26/23. | ||
// Copyright © 2023 sju. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
import ComposableArchitecture | ||
|
||
public struct OnboardingNicknameStore: Reducer { | ||
public struct State: Equatable { | ||
public init() { } | ||
} | ||
|
||
public enum Action: Equatable { | ||
case onAppear | ||
|
||
case delegate(Delegate) | ||
|
||
public enum Delegate: Equatable { | ||
case select(NewsEntity) | ||
} | ||
} | ||
|
||
public var body: some ReducerOf<Self> { | ||
Reduce { state, action in | ||
switch action { | ||
case .onAppear: | ||
return .none | ||
|
||
default: | ||
return .none | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
Targets/D3N/Sources/Feature/Onboarding/Nickname/OnboardingNicknameView.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,24 @@ | ||
// | ||
// OnboardingNicknameView.swift | ||
// D3N | ||
// | ||
// Created by 송영모 on 10/26/23. | ||
// Copyright © 2023 sju. All rights reserved. | ||
// | ||
|
||
import SwiftUI | ||
|
||
import ComposableArchitecture | ||
|
||
struct OnboardingNicknameView: View { | ||
let store: StoreOf<OnboardingNicknameStore> | ||
|
||
var body: some View { | ||
WithViewStore(self.store, observe: { $0 }) { viewStore in | ||
VStack { | ||
Text("닉네임을 입력해주세요.") | ||
.font(.largeTitle) | ||
} | ||
} | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
Targets/D3N/Sources/Feature/Onboarding/OnboardingNavigationStackStore.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,68 @@ | ||
// | ||
// OnboardingNavigationStackStore.swift | ||
// D3N | ||
// | ||
// Created by 송영모 on 10/26/23. | ||
// Copyright © 2023 sju. All rights reserved. | ||
// | ||
|
||
import ComposableArchitecture | ||
|
||
public struct OnboardingNavigationStackStore: Reducer { | ||
public struct State: Equatable { | ||
var signUp: OnboardingSignUpStore.State = .init() | ||
|
||
var path: StackState<Path.State> = .init() | ||
} | ||
|
||
public enum Action: BindableAction, Equatable { | ||
case binding(BindingAction<State>) | ||
|
||
case onAppear | ||
|
||
case signUp(OnboardingSignUpStore.Action) | ||
case path(StackAction<Path.State, Path.Action>) | ||
|
||
case delegate(Delegate) | ||
|
||
public enum Delegate { | ||
case complete | ||
} | ||
} | ||
|
||
public struct Path: Reducer { | ||
public enum State: Equatable { | ||
case nickname(OnboardingNicknameStore.State) | ||
} | ||
|
||
public enum Action: Equatable { | ||
case nickname(OnboardingNicknameStore.Action) | ||
} | ||
|
||
public var body: some Reducer<State, Action> { | ||
Scope(state: /State.nickname, action: /Action.nickname) { | ||
OnboardingNicknameStore() | ||
} | ||
} | ||
} | ||
|
||
public var body: some ReducerOf<Self> { | ||
BindingReducer() | ||
|
||
Reduce { state, action in | ||
switch action { | ||
case .onAppear: | ||
return .none | ||
|
||
default: | ||
return .none | ||
} | ||
} | ||
Scope(state: \.signUp, action: /Action.signUp) { | ||
OnboardingSignUpStore() | ||
} | ||
.forEach(\.path, action: /Action.path) { | ||
Path() | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
Targets/D3N/Sources/Feature/Onboarding/OnboardingNavigationStackView.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 @@ | ||
// | ||
// OnboardingNavigationStackView.swift | ||
// D3N | ||
// | ||
// Created by 송영모 on 10/26/23. | ||
// Copyright © 2023 sju. All rights reserved. | ||
// | ||
|
||
import SwiftUI | ||
|
||
import ComposableArchitecture | ||
|
||
public struct OnboardingNavigationStackView: View { | ||
let store: StoreOf<OnboardingNavigationStackStore> | ||
|
||
public init(store: StoreOf<OnboardingNavigationStackStore>) { | ||
self.store = store | ||
} | ||
|
||
public var body: some View { | ||
NavigationStackStore(self.store.scope( | ||
state: \.path, | ||
action: OnboardingNavigationStackStore.Action.path) | ||
) { | ||
WithViewStore(self.store, observe: { $0 }) { viewStore in | ||
OnboardingSignUpView(store: self.store.scope(state: \.signUp, action: OnboardingNavigationStackStore.Action.signUp)) | ||
} | ||
} destination: { | ||
switch $0 { | ||
case .nickname: | ||
CaseLet( | ||
/OnboardingNavigationStackStore.Path.State.nickname, | ||
action: OnboardingNavigationStackStore.Path.Action.nickname, | ||
then: OnboardingNicknameView.init(store:) | ||
) | ||
} | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
Targets/D3N/Sources/Feature/Onboarding/SignUp/OnboardingSignUpStore.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 @@ | ||
// | ||
// OnboardingSignUpStore.swift | ||
// D3N | ||
// | ||
// Created by 송영모 on 10/26/23. | ||
// Copyright © 2023 sju. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
import ComposableArchitecture | ||
|
||
public struct OnboardingSignUpStore: Reducer { | ||
public struct State: Equatable { | ||
public init() { } | ||
} | ||
|
||
public enum Action: Equatable { | ||
case onAppear | ||
|
||
case delegate(Delegate) | ||
|
||
public enum Delegate: Equatable { | ||
case select(NewsEntity) | ||
} | ||
} | ||
|
||
public var body: some ReducerOf<Self> { | ||
Reduce { state, action in | ||
switch action { | ||
case .onAppear: | ||
return .none | ||
|
||
default: | ||
return .none | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
Targets/D3N/Sources/Feature/Onboarding/SignUp/OnboardingSignUpView.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,27 @@ | ||
// | ||
// OnboardingSignUpView.swift | ||
// D3N | ||
// | ||
// Created by 송영모 on 10/26/23. | ||
// Copyright © 2023 sju. All rights reserved. | ||
// | ||
|
||
import SwiftUI | ||
|
||
import ComposableArchitecture | ||
|
||
public struct OnboardingSignUpView: View { | ||
let store: StoreOf<OnboardingSignUpStore> | ||
|
||
public init(store: StoreOf<OnboardingSignUpStore>) { | ||
self.store = store | ||
} | ||
|
||
public var body: some View { | ||
WithViewStore(self.store, observe: { $0 }) { viewStore in | ||
VStack { | ||
Text("") | ||
} | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
Targets/D3N/Sources/Feature/Onboarding/UserInfo/OnboardingUserInfoStore.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,9 @@ | ||
// | ||
// OnboardingUserInfoStore.swift | ||
// D3N | ||
// | ||
// Created by 송영모 on 10/26/23. | ||
// Copyright © 2023 sju. All rights reserved. | ||
// | ||
|
||
import Foundation |
9 changes: 9 additions & 0 deletions
9
Targets/D3N/Sources/Feature/Onboarding/UserInfo/OnboardingUserInfoView.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,9 @@ | ||
// | ||
// OnboardingUserInfoView.swift | ||
// D3N | ||
// | ||
// Created by 송영모 on 10/26/23. | ||
// Copyright © 2023 sju. All rights reserved. | ||
// | ||
|
||
import Foundation |