Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
enebin committed Nov 5, 2023
2 parents ca4a458 + 12b2d3c commit ee205f2
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 15 deletions.
3 changes: 1 addition & 2 deletions Projects/DSKit/Sources/Button/SegmentControlView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public struct SegmentControlView<SegmentType: Identifiable, Content: View>: View
.animation(Animation.customInteractiveSpring(), value: selected)
}
.padding(4)

.background {
BackgroundBlurringView(style: .systemChromeMaterialDark)
.cornerRadius(16)
Expand Down Expand Up @@ -95,7 +94,7 @@ extension SegmentControlView {

@ViewBuilder private var buttonBackground: some View {
if selectedId.id == id.id {
RoundedRectangle(cornerRadius: 16, style: .continuous)
RoundedRectangle(cornerRadius: 13, style: .continuous)
.fill(bgColor)
.matchedGeometryEffect(id: "SelectedTab", in: namespace)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ public struct CharacterScore: Identifiable, Equatable {

public init(score: Int, date: String) {
globalDateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss"
globalDateFormatter.timeZone = TimeZone(secondsFromGMT: 0)

let kstTimeZone = TimeZone(identifier: "Asia/Seoul")
globalDateFormatter.timeZone = kstTimeZone

self.score = score
self.date = globalDateFormatter.date(from: date) ?? Date()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ struct DailyTestListView: View {
.frame(width: 40, height: 40)

Text.keyme("\(nickname)\(questionsStat.title)", font: .body3Semibold)
.lineHeight(140, forFont: .body3Semibold)
.lineHeight(120, forFont: .body3Semibold)
.frame(maxWidth: .infinity, alignment: .leading)
.truncationMode(.tail)
.foregroundColor(.white)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,23 @@ public struct MyPageImageExportView<Content: View>: View {
content

VStack(alignment: .leading, spacing: 8) {
// Text.keyme(title, font: .body5)
// .foregroundColor(.white.opacity(0.3))

Text.keyme("μΉœκ΅¬λ“€μ΄ μƒκ°ν•˜λŠ”\n\(nickname)λ‹˜μ˜" +
"\n\(title) 성격은?", font: .heading1)
Group {
if nickname.count > 3 {
Text.keyme("μΉœκ΅¬λ“€μ΄ μƒκ°ν•˜λŠ”" +
"\n" +
"\(nickname)λ‹˜κ³Ό " +
"\n" +
"\(title) 성격은?",
font: .heading1)
} else {
Text.keyme("μΉœκ΅¬λ“€μ΄ μƒκ°ν•˜λŠ”" +
"\n" +
"\(nickname)λ‹˜κ³Ό \(title) 성격은?",
font: .heading1)
}
}
.lineSpacing(4)
.transition(.opacity)
.foregroundColor(.white)

Spacer()
Expand Down
22 changes: 18 additions & 4 deletions Projects/Features/Sources/MyPage/MyPageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,24 @@ struct MyPageView: View {
.padding(.horizontal, 17)
.padding(.top, 25)

Text.keyme("μΉœκ΅¬λ“€μ΄ μƒκ°ν•˜λŠ”\n\(viewStore.nickname)λ‹˜μ˜" +
"\n\(viewStore.selectedSegment.title) 성격은?", font: .heading1)
.padding(17)
.transition(.opacity)
Group {
if viewStore.nickname.count > 3 {
Text.keyme("μΉœκ΅¬λ“€μ΄ μƒκ°ν•˜λŠ”" +
"\n" +
"\(viewStore.nickname)λ‹˜κ³Ό " +
"\n" +
"\(viewStore.selectedSegment.title) 성격은?",
font: .heading1)
} else {
Text.keyme("μΉœκ΅¬λ“€μ΄ μƒκ°ν•˜λŠ”" +
"\n" +
"\(viewStore.nickname)λ‹˜κ³Ό \(viewStore.selectedSegment.title) 성격은?",
font: .heading1)
}
}
.lineSpacing(4)
.padding(17)
.transition(.opacity)
}
.foregroundColor(.white)
.transition(.opacity)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ struct ScoreListView: View {
.redacted(reason: viewStore.nowFetching ? .placeholder : [])

Divider().overlay(keymeWhite.opacity(0.1))
.padding(.vertical, 4)

if viewStore.nowFetching {
scoreListLoading()
Expand All @@ -65,9 +66,10 @@ struct ScoreListView: View {

// MARK: - Subviews
private func headerView(using viewStore: ViewStoreOf<ScoreListFeature>) -> some View {
VStack(alignment: .leading) {
VStack(alignment: .leading, spacing: 8) {
if let questionText = viewStore.questionText {
Text.keyme(nickname + questionText, font: .body1)
.lineSpacing(3)
.foregroundColor(keymeWhite)
} else {
Text("")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public struct RegistrationView: View {

// λ‹‰λ„€μž„μ„ μž…λ ₯ν•˜λŠ” TextField
TextField("Nickname", text: $nickname)
.font(Font(DSKitFontFamily.Pretendard.semiBold.font(size: 16)))
.kerning(16 * (-3 / 100))
.focused($isTextFieldFocused)
.placeholder(when: nickname.isEmpty, placeholder: {
Text.keyme("λ‹‰λ„€μž„μ„ μž…λ ₯ν•΄μ£Όμ„Έμš”.", font: .body3Regular)
Expand Down Expand Up @@ -113,7 +115,8 @@ public struct RegistrationView: View {
.cornerRadius(8)
.overlay(
Text.keyme("μΉœκ΅¬λ“€μ΄ μ›ν™œν•˜κ²Œ 문제λ₯Ό ν’€ 수 μžˆλ„λ‘, λ‚˜λ₯Ό κ°€μž₯ 잘 λ‚˜νƒ€λ‚΄λŠ” λ‹‰λ„€μž„μœΌλ‘œ μ„€μ •ν•΄μ£Όμ„Έμš”.", font: .body4)
.lineSpacing(10)
.lineSpacing(8)
.padding(.horizontal, 16)
.foregroundColor(.white)
)
.padding(.bottom, 64)
Expand Down

0 comments on commit ee205f2

Please sign in to comment.