Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] #111 - [FEAT] 온보딩 레이아웃 및 화면전환 구현 #115

Merged
merged 4 commits into from
Dec 7, 2021

Conversation

hyun99999
Copy link
Member

@hyun99999 hyun99999 commented Dec 7, 2021

🌴 PR 요약

🌱 작업한 브랜치

🌱 작업한 내용

  • 온보딩 이미지 에셋 추가(온보딩, 버튼)
  • 온보딩 레이아웃 구현
  • 로그인 뷰컨트롤러로 화면전환 구현
  • UICollectionViewDelegate 에서 scrollViewWillEndDragging 메서드를 통해서 페이징 효과를 구현

📸 스크린샷

기능 스크린샷
온보딩

📮 관련 이슈

### Descriptions
- 온보딩 이미지 에셋 추가(온보딩, 버튼)
- 온보딩 레이아웃 구현
- 로그인 뷰컨트롤러로 화면전환 구현
### Descriptions
- UICollectionViewDelegate 에서 scrollViewWillEndDragging 메서드를 통해서 페이징 효과를 구현
…ease into feature/TeamNADA#111

# Conflicts:
#	NADA-iOS-forRelease/Sources/SceneDelegate.swift
@hyun99999 hyun99999 added the Feat 새로운 기능 구현 label Dec 7, 2021
@hyun99999 hyun99999 self-assigned this Dec 7, 2021
@hyun99999
Copy link
Member Author

현재 간격은 슬랙에서 얘기한대로 85고 나커톤때 라이브 코딩 쇼쇼쇼를 통해서.. 조절 예정입니다

Copy link
Member

@dlwns33 dlwns33 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

온보딩기딩기디딩딩딩

Comment on lines +17 to +26
private enum Size {
static let cellWidth: CGFloat = 327
static let cellHeigth: CGFloat = 327
static let cellTopInset: CGFloat = 198
static let cellBottomInset: CGFloat = 208
// TODO: - 나커톤 때 라이브코딩 쇼쇼쇼
static let cellLineSpacing: CGFloat = 85
// TODO: - 기기대응응 필요.
static let topSafeArea: CGFloat = 44
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 이거 신기하네여


// MARK: - Properties

var presentToLoginViewController: (() -> Void)?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

우와 (() -> Void)? 이건 무슨 타입인가요?!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

클로저입니다! () -> () 이렇게로도 표현이 가능하지만 style share 코드 컨밴션을 따라서 위와 같이 표기했어요!!

야야 최이준 이거 세미나에 나왔다 야야 ㅋ ㅋ ㅋㅋㅋ ㅋ

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

스크린샷 2021-12-07 오후 9 31 58

// MARK: - @IBAction Properties

@IBAction func touchStartButton(_ sender: Any) {
presentToLoginViewController?()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그러게요 요런 모양 처음 만나는 친구네요???

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

셀안의 버튼을 누르면 뷰컨트롤러에서 화면전환하는 목적으로 구성했는데요! 셀에다가 클로저 옵셔널 변수를 만들고 셀을 뷰컨트롤러에서 만들어줄 때 delegate 에서 셀의 클로저 옵셔널 변수에 화면전환 코드를 넣는 로직입니당!


private var currentIndex: CGFloat = 0
private let onboardingList = ["onboarding01", "onboarding02", "onboarding03", "onboarding04"]
// TODO: - 🪓 선배륌들 이런 방법도있어서 써봤어여 사이즈같은 쓰이는 숫자들 여기서 다뤄도 좋을거 같아여..
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오호랏

@hyun99999 hyun99999 merged commit 8171cc0 into TeamNADA:develop Dec 7, 2021
@hyun99999 hyun99999 added Hyungyu 🐯 현규 교수님 작업 P1 / Priority High 우선순위 높음 labels Dec 7, 2021
@hyun99999 hyun99999 deleted the feature/#111 branch December 9, 2021 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feat 새로운 기능 구현 Hyungyu 🐯 현규 교수님 작업 P1 / Priority High 우선순위 높음
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 온보딩 레이아웃 및 화면전환 구현
3 participants