-
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.
* [WEAV-70] Project Navigation 구조 변경 * [WEAV-70] 전화번호 인증 뷰 구현 * [WEAV-70] 인증코드 입력 뷰 구현 * [WEAV-70] 인증 완료 뷰 구현 * [WEAV-70] AI 리뷰 반영
- Loading branch information
1 parent
aeb2d17
commit 4c2f234
Showing
27 changed files
with
613 additions
and
126 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// | ||
// NavigationStack.swift | ||
// three-days-dev | ||
// | ||
// Created by 김지수 on 9/30/24. | ||
// Copyright © 2024 com.weave. All rights reserved. | ||
// | ||
|
||
import SwiftUI | ||
import CommonKit | ||
import SignUp | ||
import DesignPreview | ||
|
||
extension PathType { | ||
@ViewBuilder | ||
var view: some View { | ||
switch self { | ||
case .designPreview: | ||
DesignPreviewView() | ||
case .main: | ||
SplashAnimatedView() | ||
case .signUp(let subView): | ||
switch subView { | ||
case .authPhoneInput: | ||
AuthPhoneInputView() | ||
case .authPhoneVerify: | ||
AuthPhoneVerifyView() | ||
case .authAgreement: | ||
AuthAgreementView() | ||
} | ||
} | ||
} | ||
} | ||
|
||
extension AppCoordinator { | ||
@ViewBuilder | ||
var rootView: some View { | ||
navigationStack[0].view | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// AppCoordinator.swift | ||
// CommonKit | ||
// | ||
// Created by 김지수 on 9/18/24. | ||
// Copyright © 2024 com.weave. All rights reserved. | ||
// | ||
|
||
import SwiftUI | ||
|
||
public final class AppCoordinator: ObservableObject { | ||
//MARK: - Lifecycle | ||
public static var shared = AppCoordinator() | ||
private init() {} | ||
|
||
//MARK: - Properties | ||
@Published public var navigationStack: [PathType] = [.main] | ||
|
||
//MARK: - Methods | ||
public func changeRootView(_ path: PathType) { | ||
Task { | ||
await MainActor.run { | ||
navigationStack = [path] | ||
} | ||
} | ||
} | ||
|
||
@MainActor | ||
public func push(_ path: PathType) { | ||
navigationStack.append(path) | ||
} | ||
|
||
@MainActor | ||
public func pop() { | ||
guard navigationStack.count > 1 else { return } | ||
navigationStack.removeLast() | ||
} | ||
} |
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,42 @@ | ||
// | ||
// PathTypes.swift | ||
// CommonKit | ||
// | ||
// Created by 김지수 on 9/18/24. | ||
// Copyright © 2024 com.weave. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public enum PathType: Hashable { | ||
case designPreview | ||
case main | ||
case signUp(SignUpSubViewType) | ||
|
||
#if STAGING || DEBUG | ||
public static var debugPreviewTypes: [PathType] = [ | ||
.designPreview, | ||
.main, | ||
.signUp(.authPhoneInput) | ||
] | ||
#endif | ||
|
||
public var name: String { | ||
switch self { | ||
case .designPreview: return "Design Preview" | ||
case .main: return "메인" | ||
case .signUp(let subType): | ||
switch subType { | ||
case .authPhoneInput: return "전화번호 입력" | ||
case .authPhoneVerify: return "전화번호 인증" | ||
case .authAgreement: return "이용 약관" | ||
} | ||
} | ||
} | ||
} | ||
|
||
public enum SignUpSubViewType: Hashable { | ||
case authPhoneInput | ||
case authPhoneVerify | ||
case authAgreement | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
...esignSystem/DesignCore/Resources/Images/Images.xcassets/left_arrow.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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "left_arrow.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+333 Bytes
.../DesignCore/Resources/Images/Images.xcassets/left_arrow.imageset/left_arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+464 Bytes
...signCore/Resources/Images/Images.xcassets/left_arrow.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+624 Bytes
...signCore/Resources/Images/Images.xcassets/left_arrow.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.