BaseView 프로토콜 도입 여부 #16
EnnzoKim
started this conversation in
Show and tell
Replies: 2 comments 2 replies
-
좋아좋아 dev 브랜치에 바로 커밋하고 브랜치에 마지시켜서 작업하면 좋을 것 같아! 👍👍 |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
현재
BaseViewController
라는 상속의 이점을 통해서UIViewController의 UI 레이아웃 및 제약조건의 컨벤션을 맞춰주고 있는데,
정작
UIView
를 상속하는 Custom View를 구현할 떄는 마땅한 옵젝이 없어서 한번 구현해봤어UIView
를 상속하는 CustomView는 모양새가 다양하기 떄문에(
UIImageView
,UICollectionViewCell
,UILabel
등등 ...)상속을 사용할 수는 없었고, 이 이유떄문에 프로토콜로 구현했어
프로토콜로 구현했기 떄문에 위 세 가지 메서드는
init
메서드에서 명시적으로 불러줘야 할거야이 구현 내용은 현재
Favor15 OnboardingVC-UI
브랜치에만 존재하고이것을 도입할지 안 할지 의견이 궁금해서 Discussion 열어봤어
한번 보고 의견 부탁해!
Beta Was this translation helpful? Give feedback.
All reactions