-
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.
Merge pull request #45 from Student-Center/feature/WEAV-135
[WEAV-135] 프로필, 이상형 정보 입력 Intro 뷰 생성
- Loading branch information
Showing
23 changed files
with
558 additions
and
6 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
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
23 changes: 23 additions & 0 deletions
23
...ystem/DesignCore/Resources/Images/Images.xcassets/heart-with-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" : "heart-with-arrow.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "heart-with-arrow@2x.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "heart-with-arrow@3x.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+3.43 KB
...Resources/Images/Images.xcassets/heart-with-arrow.imageset/heart-with-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
+10.1 KB
...ources/Images/Images.xcassets/heart-with-arrow.imageset/heart-with-arrow@2x.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
+19.5 KB
...ources/Images/Images.xcassets/heart-with-arrow.imageset/heart-with-arrow@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
...ystem/DesignCore/Resources/Images/Images.xcassets/magnifying-glass.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" : "magnifying-glass.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "magnifying-glass@2x.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "magnifying-glass@3x.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+3.59 KB
...Resources/Images/Images.xcassets/magnifying-glass.imageset/magnifying-glass.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
+10.7 KB
...ources/Images/Images.xcassets/magnifying-glass.imageset/magnifying-glass@2x.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
+20.5 KB
...ources/Images/Images.xcassets/magnifying-glass.imageset/magnifying-glass@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
66 changes: 66 additions & 0 deletions
66
...Features/SignUp/Sources/DreamPartnerInput/DreamPartnerIntro/DreamPartnerIntroIntent.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,66 @@ | ||
// | ||
// DreamPartnerIntroIntent.swift | ||
// SignUp | ||
// | ||
// Created by 김지수 on 11/21/24. | ||
// Copyright © 2024 com.weave. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import CommonKit | ||
import CoreKit | ||
import Model | ||
|
||
//MARK: - Intent | ||
class DreamPartnerIntroIntent { | ||
private weak var model: DreamPartnerIntroModelActionable? | ||
private let input: DataModel | ||
|
||
// MARK: Life cycle | ||
init( | ||
model: DreamPartnerIntroModelActionable, | ||
input: DataModel | ||
) { | ||
self.input = input | ||
self.model = model | ||
|
||
Task { | ||
try? await Task.sleep(for: .milliseconds(2500)) | ||
await pushNextView() | ||
} | ||
} | ||
} | ||
|
||
//MARK: - Intentable | ||
extension DreamPartnerIntroIntent { | ||
protocol Intentable { | ||
// content | ||
func pushNextView() async | ||
func onTapNextButton() | ||
|
||
// default | ||
func onAppear() | ||
func task() async | ||
} | ||
|
||
struct DataModel { | ||
let input: SignUpFormDomain | ||
} | ||
} | ||
|
||
//MARK: - Intentable | ||
extension DreamPartnerIntroIntent: DreamPartnerIntroIntent.Intentable { | ||
// default | ||
func onAppear() {} | ||
|
||
func task() async {} | ||
|
||
// content | ||
@MainActor | ||
func pushNextView() async { | ||
AppCoordinator.shared.changeRootView( | ||
.signUp(.dreamPartnerAgeRange(input: input.input)) | ||
) | ||
} | ||
func onTapNextButton() {} | ||
} |
78 changes: 78 additions & 0 deletions
78
.../Features/SignUp/Sources/DreamPartnerInput/DreamPartnerIntro/DreamPartnerIntroModel.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,78 @@ | ||
// | ||
// DreamPartnerIntroModel.swift | ||
// SignUp | ||
// | ||
// Created by 김지수 on 11/21/24. | ||
// Copyright © 2024 com.weave. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import CommonKit | ||
import CoreKit | ||
|
||
final class DreamPartnerIntroModel: ObservableObject { | ||
|
||
//MARK: Stateful | ||
protocol Stateful { | ||
// content | ||
var isValidated: Bool { get } | ||
|
||
// default | ||
var isLoading: Bool { get } | ||
|
||
// error | ||
var showErrorView: ErrorModel? { get } | ||
var showErrorAlert: ErrorModel? { get } | ||
} | ||
|
||
//MARK: State Properties | ||
// content | ||
@Published var isValidated: Bool = false | ||
|
||
// default | ||
@Published var isLoading: Bool = false | ||
|
||
// error | ||
@Published var showErrorView: ErrorModel? | ||
@Published var showErrorAlert: ErrorModel? | ||
} | ||
|
||
extension DreamPartnerIntroModel: DreamPartnerIntroModel.Stateful {} | ||
|
||
//MARK: - Actionable | ||
protocol DreamPartnerIntroModelActionable: AnyObject { | ||
// content | ||
func setValidation(value: Bool) | ||
|
||
// default | ||
func setLoading(status: Bool) | ||
|
||
// error | ||
func showErrorView(error: ErrorModel) | ||
func showErrorAlert(error: ErrorModel) | ||
func resetError() | ||
} | ||
|
||
extension DreamPartnerIntroModel: DreamPartnerIntroModelActionable { | ||
// content | ||
func setValidation(value: Bool) { | ||
isValidated = value | ||
} | ||
|
||
// default | ||
func setLoading(status: Bool) { | ||
isLoading = status | ||
} | ||
|
||
// error | ||
func showErrorView(error: ErrorModel) { | ||
showErrorView = error | ||
} | ||
func showErrorAlert(error: ErrorModel) { | ||
showErrorAlert = error | ||
} | ||
func resetError() { | ||
showErrorView = nil | ||
showErrorAlert = nil | ||
} | ||
} |
Oops, something went wrong.