-
Notifications
You must be signed in to change notification settings - Fork 6
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] #24 - 보관함 뷰 레이아웃 구현 #37
Conversation
StorageCVC들 추가했습니다.
StorageListDataModel 파일 추가
CarouselLayout 클래스 생성
MyButton 클래스 추가
컬렉션뷰 생성 및 캐러셀 레이아웃 적용
버튼으로 컬렉션뷰 전환 기능 구현
UIView 그라데이션 함수 추가
StorageVC 상단 라벨 구현
버튼 및 라벨 레이아웃 구현
버튼 선택 시 전환 기능 구현
코드 오류 수정
프로젝트 최신화
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙆♀️🙇♀️
|
||
class DoingStorageCVC: UICollectionViewCell { | ||
|
||
@IBOutlet weak var gradationUIView: UIView! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
나중에 여유가 된다면 마크 주석 추가해주세여!
// MARK: - Properties
// MARK: - @IBOutlet Properties
// MARK: - @IBAction Properties
// MARK: - View Life Cycle
// MARK: - Methods > setUI, registerXib, assignDelegate 등
// MARK: - @objc Function
// MARK: - Network > 네트워크 목적을 가진 함수들
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그...여유가되면...알게습니다...
} | ||
} | ||
|
||
extension UIView{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UIVIew+ 익스텐션에 넣어도 좋을 것 같어여
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
옮겨놨어여~~
// TODO: 컬렉션뷰 위치 스냅킷으로 잡아주기. | ||
|
||
// MARK: 버튼 레이아웃 설정 | ||
func setButtons() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setUI()
랑 setLayout()
으로 분리해주면 좋을 것 같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 수정하겠슴당!
addSubviews(doingButton, doneButton, failButton, DoingCV, DoneCV, FailCV) | ||
addSubviews(upperLabel, lowerLabel, doingLabel, doneLabel, failLabel) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addSubviews는 setLayout()
에 레이아웃 잡는 코드와 함께 있는건 어떨까여?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵넵 수정하겠습니다~~
DoingCV.isHidden = true | ||
DoneCV.isHidden = false | ||
FailCV.isHidden = true | ||
doingButton.isSelected = false | ||
doneButton.isSelected = true | ||
failButton.isSelected = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코드를 쪼금 줄이려면 forEach를 사용하는 것도 좋을 것 같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
메모해놓을게용 ㅎㅎ 감사합니다!
func addSubviews(_ views: UIView...) { | ||
for view in views { | ||
self.view.addSubview(view) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UIView+extension 에 넣어뒀습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
옮기겠습니다!
🌴 PR 요약
🌱 작업한 브랜치
🌱 작업한 내용
📸 스크린샷
📮 관련 이슈
추후 구현할 사항