Skip to content

[Feat] #54 - 보관함 뷰 UI 구성 및 기능 구현#55

Merged
EunHee-Jeong merged 9 commits intoTeamRecorDream:developfrom
EunHee-Jeong:feature/#54
Dec 11, 2022
Merged

[Feat] #54 - 보관함 뷰 UI 구성 및 기능 구현#55
EunHee-Jeong merged 9 commits intoTeamRecorDream:developfrom
EunHee-Jeong:feature/#54

Conversation

@EunHee-Jeong
Copy link
Copy Markdown
Member

👻 작업한 내용

  • 보관함 뷰 UI 구성
  • 컬렉션 뷰 open class RDControllable로 관리
  • 리스트, 그리드 뷰 따로 보기 → RDSegmentControl 커스텀

🎤 PR Point

  • 기능 테스트 및 레이아웃 세부 조절은 API 연결하면서 같이 하겠습니다...

📮 관련 이슈

@EunHee-Jeong EunHee-Jeong added 으니짱 🍅 담당자 feat 구현·개선 사항에 관련된 내용입니다. labels Dec 10, 2022
@EunHee-Jeong EunHee-Jeong self-assigned this Dec 10, 2022
@EunHee-Jeong EunHee-Jeong changed the title [Feature] #54 - 보관함 뷰 UI 구성 및 기능 구현 [Feat] #54 - 보관함 뷰 UI 구성 및 기능 구현 Dec 10, 2022
L-j-h-c
L-j-h-c previously approved these changes Dec 10, 2022
Copy link
Copy Markdown
Contributor

@L-j-h-c L-j-h-c 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 +11 to +23
public class RDCollectionViewFlowLayout: UICollectionViewFlowLayout {
// MARK: - Properties
public enum CollectionDisplay {
case grid
case list
}
public var display: CollectionDisplay = .grid {
didSet {
if display != oldValue {
self.invalidateLayout()
}
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

멋지네용~!

Comment on lines +11 to +21
public enum DreamStorageSection: String, CaseIterable {
case filters = "나의 감정"
case records

public static func type(_ index: Int) -> DreamStorageSection {
return self.allCases[index]
}
public var title: String {
return self.rawValue
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

요 열거형을 DSKit의 Constants에 넣으신 의도가 있으신가용?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

아래 extension 부분에서 DSKit의 리소스만 가져와 사용하기도 하고, 내부 함수와 프로퍼티들이 static하게 들어가기 때문에 디자인 시스템으로 빼게 되었습니다...!
두 번째 이유로는 준호님께서 만드셨던 Section을 재사용 하려고 했는데 저는 필터에서 '미설정'타입도 필요해서 추가하기 애매하더라고용... 그래서 섹션 따로 만들어서뺐습니다!

Comment on lines +13 to +14
public class RDSegmentControl: UISegmentedControl {
private lazy var rdCollectionViewFlowLayout = RDCollectionViewFlowLayout(display: .grid)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

RDSegmentControl이라는 범용적인 이름을 가지고 있는 만큼, 변화 하는 값에 다른 타입들을 넣을 수 있도록 protocol로 관리하는 방식도 좋을 것 같아요!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

반영하겠습니다!

- RDSegmentControl: class → protocol
Copy link
Copy Markdown
Contributor

@L-j-h-c L-j-h-c left a comment

Choose a reason for hiding this comment

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

화이팅~~!

@EunHee-Jeong EunHee-Jeong merged commit a8295f6 into TeamRecorDream:develop Dec 11, 2022
@EunHee-Jeong EunHee-Jeong deleted the feature/#54 branch December 11, 2022 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat 구현·개선 사항에 관련된 내용입니다. 으니짱 🍅 담당자

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] 보관함 뷰 UI 구성 및 기능 구현

2 participants