Skip to content

Commit

Permalink
🗑️ Deprecate 메서드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
isGeekCode committed Jan 28, 2024
1 parent 65279c8 commit f95c717
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions PyeonHaeng-iOS/Sources/Scenes/OnboardingScene/OnboardingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct OnboardingView: View {
@State private var currentPage = 0

var body: some View {
NavigationView {
NavigationStack {
VStack {
TabView(selection: $currentPage) {
ForEach(OnboardingPage.allCases.indices, id: \.self) { index in
Expand Down Expand Up @@ -78,7 +78,7 @@ struct OnboardingView: View {
// 본문 내용
Text(OnboardingPage(rawValue: currentPage)?.body ?? "")
.font(.body2)
.foregroundStyle(.black)
.foregroundStyle(Color.gray500)
.multilineTextAlignment(.center)
.padding(.top, 8)

Expand All @@ -93,15 +93,21 @@ struct OnboardingView: View {
.foregroundColor(.white)
.frame(maxWidth: .infinity)
.padding()
.background(.green)
.background(Color.green500)
.cornerRadius(10)
.padding(.horizontal, 20)
}
.padding(.bottom, 8)
}
.navigationBarTitle("", displayMode: .inline)
.navigationBarItems(trailing: Text("건너뛰기")
.foregroundColor(.green))
.navigationTitle("")
.toolbar {
ToolbarItem(placement: .navigationBarTrailing) {
Button("건너뛰기") {
// 건너뛰기 버튼 액션
}
.foregroundStyle(Color.green500)
}
}
}
}
}
Expand All @@ -118,12 +124,12 @@ private struct CustomPageControl: View {
if currentPage == index {
Rectangle()
.frame(width: 24, height: 6)
.foregroundColor(.green)
.foregroundStyle(Color.green500)
.transition(.scale)
} else {
Circle()
.frame(width: 6, height: 6)
.foregroundColor(.gray)
.foregroundStyle(Color.gray500)
.transition(.scale)
}
}
Expand Down

0 comments on commit f95c717

Please sign in to comment.