-
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
4ec2d71
commit cbcd5cc
Showing
12 changed files
with
164 additions
and
11 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
23 changes: 23 additions & 0 deletions
23
...ystem/DesignCore/Resources/Images/Images.xcassets/icon-information.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" : "icon-information.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
+492 Bytes
...Resources/Images/Images.xcassets/icon-information.imageset/icon-information.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
+917 Bytes
...ources/Images/Images.xcassets/icon-information.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
+1.3 KB
...ources/Images/Images.xcassets/icon-information.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.
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
96 changes: 96 additions & 0 deletions
96
Projects/Features/SignUp/Sources/ProfileInput/AuthProfileAge/AuthProfileAgeInputView.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,96 @@ | ||
// | ||
// AuthProfileAgeView.swift | ||
// DesignPreview | ||
// | ||
// Created by 김지수 on 10/1/24. | ||
// Copyright © 2024 com.weave. All rights reserved. | ||
// | ||
|
||
import SwiftUI | ||
import DesignCore | ||
import CommonKit | ||
|
||
public struct AuthProfileAgeInputView: View { | ||
|
||
@State var birthYear = String() | ||
@State var errorMessage: String? = "잘못 입력하셨어요" | ||
@FocusState var isFocused | ||
|
||
public init() {} | ||
|
||
var targetGender: String { | ||
let tempTarget = "여성" | ||
return tempTarget | ||
} | ||
|
||
public var body: some View { | ||
VStack { | ||
ProfileInputTemplatedView( | ||
currentPage: 2, | ||
maxPage: 5, | ||
subMessage: "좋은 \(targetGender) 소개시켜 드릴께요!", | ||
mainMessage: "당신의 나이는 무엇인가요?" | ||
) { | ||
VStack { | ||
HStack { | ||
VerifyCodeInputView( | ||
verifyCode: $birthYear, | ||
errorMessage: $errorMessage, | ||
verifyCodeMaxCount: 4, | ||
boxHeight: 92, | ||
textColor: .black, | ||
borderWidth: 4, | ||
borderColor: .white, | ||
backColor: DesignCore.Colors.yellow50, | ||
cornerRadius: 20, | ||
focused: _isFocused | ||
) | ||
.padding(.horizontal, 6) | ||
|
||
VStack { | ||
Spacer() | ||
Text("년생") | ||
.typography(.semibold_18) | ||
.foregroundStyle(DesignCore.Colors.grey300) | ||
} | ||
} | ||
.frame(height: 92) | ||
|
||
Button(action: { | ||
|
||
}, label: { | ||
HStack(spacing: 4) { | ||
DesignCore.Images.iconInformation.image | ||
Text("가입 연령 확인하기") | ||
.typography(.regular_14) | ||
.foregroundStyle(DesignCore.Colors.grey200) | ||
} | ||
}) | ||
.padding(.top, 20) | ||
} | ||
.padding(.top, 8) | ||
} | ||
|
||
Spacer() | ||
|
||
CTABottomButton( | ||
title: "다음", | ||
isActive: birthYear.count > 3 | ||
) { | ||
|
||
} | ||
} | ||
.ignoresSafeArea() | ||
.padding(.top, 10) | ||
.textureBackground() | ||
.setNavigation(showLeftBackButton: false) { | ||
|
||
} | ||
} | ||
} | ||
|
||
#Preview { | ||
NavigationView { | ||
AuthProfileAgeInputView() | ||
} | ||
} |
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