Skip to content

Commit

Permalink
refactor #87: 약관 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
enebin committed Sep 3, 2023
1 parent 05dad48 commit 7f4977e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Projects/Features/Sources/Onboarding/OnboardingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public struct OnboardingView: View {
Color.clear
.contentShape(Circle())
.onTapGesture {
HapticManager.shared.tongtong()
HapticManager.shared.boong()
viewStore.send(.startButtonDidTap)
}
}
Expand Down
7 changes: 4 additions & 3 deletions Projects/Features/Sources/Registration/RegistrationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ public struct RegistrationView: View {
.padding(.bottom, 20)
.disabled(viewStore.state.canRegister ? false : true)
}
.onTapGesture {
isTextFieldFocused = false
}
.padding(.horizontal, 16)
.onChange(of: nickname) { newValue in
guard 1 <= newValue.count, newValue.count <= 6 else {
Expand All @@ -164,6 +161,10 @@ public struct RegistrationView: View {
.fullFrame()
.ignoresSafeArea(.keyboard, edges: .bottom)
}
.contentShape(Rectangle())
.onTapGesture {
isTextFieldFocused = false
}
}
}

Expand Down
17 changes: 15 additions & 2 deletions Projects/Features/Sources/SignIn/SignInView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,21 @@ public struct SignInView: View {
}

struct GuideMessageView: View {
let serviceTermURLString = "https://keyme.notion.site/Keyme-b1f3902d8fe04b97be6d8835119887cd?pvs=4"
let privacyTermURLString = "https://keyme.notion.site/Keyme-46bef61be1204fc594a49e85e5913a39?pvs=4"

var body: some View {
VStack(spacing: 8) {
Text("가입 시, 키미의 다음 사항에 동의하는 것으로 간주합니다.")
.foregroundColor(.gray)

HStack(spacing: 4) {
Button(action: {}) {
Button(action: {
guard let serviceTermURL = URL(string: serviceTermURLString) else {
return
}
UIApplication.shared.open(serviceTermURL)
}) {
Text("서비스 이용약관")
.fontWeight(.bold)
.foregroundColor(.white)
Expand All @@ -102,7 +110,12 @@ public struct SignInView: View {
Text("")
.foregroundColor(.gray)

Button(action: {}) {
Button(action: {
guard let privacyTermURL = URL(string: privacyTermURLString) else {
return
}
UIApplication.shared.open(privacyTermURL)
}) {
Text("개인정보 정책")
.fontWeight(.bold)
.foregroundColor(.white)
Expand Down

0 comments on commit 7f4977e

Please sign in to comment.