Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"images" : [
{
"filename" : "graphic.png",
"filename" : "onboarding2.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "graphic@2x.png",
"filename" : "onboarding2@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "graphic@3x.png",
"filename" : "onboarding2@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ private extension OnboardingView {
imageView.snp.makeConstraints {
$0.top.equalToSuperview()
$0.horizontalEdges.equalToSuperview()
$0.height.equalTo(imageView.snp.width).multipliedBy(274.0 / 375.0)
}

labelStack.snp.makeConstraints {
Expand Down Expand Up @@ -169,13 +170,13 @@ private extension OnboardingView {
updateButtonTitle(for: next)
updatePage(to: next)
}

func updateButtonTitle(for page: Int) {
let isLast = (page == pageControl.numberOfPages - 1)
let title = isLast ? "시작하기" : "다음"
nextButton.primaryButton?.title = title
}

func updatePage(to index: Int) {
pageControl.currentPage = index
pageControlChanged(pageControl)
Expand All @@ -195,20 +196,20 @@ extension OnboardingView: UIScrollViewDelegate {
func scrollViewDidScroll(_ scrollView: UIScrollView) {
syncPageWithScroll()
}

func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
syncPageWithScroll()
}

func scrollViewDidEndScrollingAnimation(_ scrollView: UIScrollView) {
syncPageWithScroll()
}
}

private extension OnboardingView {
enum LayoutConstants {
static let labelStackSpacing = BKSpacing.spacing3
static let labelStackTopOffset = BKSpacing.spacing7
static let labelStackTopOffset = BKSpacing.spacing8
static let labelStackHorizontalInset = BKInset.inset5
}

Expand All @@ -229,26 +230,26 @@ private extension OnboardingView {
OnboardingPage(
image: BKImage.Graphics.onboarding2,
title: """
어떻게 쓸지 막막할땐,
감상평 가이드가 도와드려요
독서 중 느낀 감정을
자세히 남겨 보세요
""",
description: """
감정과 생각을 이끌어주는
문장들이 기록을 자연스럽게 도와줘요
책마다 쌓인 감정들은
나만의 독서 흔적이 됩니다
""",
titleHighlightWord: "감상평 가이드"
titleHighlightWord: "감정"
),
OnboardingPage(
image: BKImage.Graphics.onboarding3,
title: """
독서 중 느낀 감정은
씨앗으로 남겨보세요
기록한 문장을
카드로 공유해 보세요
""",
description: """
책마다 쌓인 감정들은
나만의 독서 흔적이 됩니다
감정 캐릭터와 함께
이미지로 저장하고 공유할 수 있어요
""",
titleHighlightWord: "씨앗"
titleHighlightWord: "공유"
)
]
}
Expand Down