Skip to content

Commit

Permalink
feat: 홈에서 책 표지 만드는 페이지로 이동 로직 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyxxn committed Nov 12, 2024
1 parent 86681ed commit 89d1cb6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ final class BookCreationViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()

setup()
configureConstraints()
}

Expand All @@ -74,7 +75,12 @@ final class BookCreationViewController: UIViewController {
super.touchesBegan(touches, with: event)
}

// MARK: - Helper
// MARK: - Setup & Configuration
private func setup() {
view.backgroundColor = .baseBackground
navigationController?.navigationBar.isHidden = false
}

private func configureConstraints() {
// 책 미리보기
let bookPreviewViewBackground = bookImageView.embededInDefaultBackground(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ public final class HomeViewController: UIViewController {
// TODO: 카테고리 시트지 띄우기
}, for: .touchUpInside)

bookCoverMakeFloatingButton.addAction(UIAction { [weak self] _ in
guard let self else { return }
self.navigationController?.pushViewController(BookCreationViewController(), animated: true)
}, for: .touchUpInside)
}

private func configureConstraints() {
Expand Down

0 comments on commit 89d1cb6

Please sign in to comment.