Skip to content

Commit

Permalink
[Fix/#114] 피커뷰 관련 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-seonwoo committed Nov 25, 2024
1 parent 7b53075 commit 7544a8c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ public final class OnboardingViewModel : ObservableObject {
private func addOnboardingState() {
guard let nextState = OnboardingState(rawValue: state.onboardingState.rawValue + 1) else { return }
state.onboardingState = nextState

if nextState.rawValue <= 2 {
state.surveyState = nextState.rawValue
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class PickerCoordinator: NSObject, UIPickerViewDelegate, UIPickerViewDataSource

func pickerView(_ pickerView: UIPickerView, attributedTitleForRow row: Int, forComponent component: Int) -> NSAttributedString? {
let time = UIColor(DSKitAsset.whiteText.swiftUIColor)
let font = UIFont(name: "Pretendard-Medium", size: 22)
let font = DSKitFontFamily.Pretendard.medium.font(size: 22)


let attributes: [NSAttributedString.Key: Any] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ extension OnboardingContentView {
.cornerRadius(1.0)
Rectangle()
.foregroundColor(DSKitAsset.bluePurpleLine.swiftUIColor)
.frame(width: CGFloat(onboardingViewModel.state.onboardingState.rawValue) / CGFloat(6) * 334, height: 4)
.frame(width: CGFloat(onboardingViewModel.state.onboardingState.rawValue) / CGFloat(5) * 334, height: 4)
.cornerRadius(10.0)
.animation(Animation.spring(duration: 0.5), value: onboardingViewModel.state.onboardingState)
}
Expand Down

0 comments on commit 7544a8c

Please sign in to comment.