[Feat] #16 - 마이페이지 뷰 UI 구현#17
Conversation
| // deselected | ||
| self.subviews[0].subviews[0].layer.cornerRadius = cornerRadius | ||
| // selected | ||
| self.subviews[0].subviews[1].layer.cornerRadius = cornerRadius | ||
| } |
There was a problem hiding this comment.
여기서 살짝 고민을 하셨던 것 같은데...!
self.center = CGFloat(x: width / 2.adjustedWidth, y: height / 2.adjustedHeight) 이런 식으로 계산해도 좋을 것 같다는 생각이...
p.s.) adjusted~는 익스텐션이에요!
There was a problem hiding this comment.
@EunHee-Jeong
아하.. 일단 스냅킷으로 강제로 width height를 잡으면 레이아웃이 망가져서 trans를 쓴건데
혹시 써주신 코드의 기능이 어떤걸까요?
There was a problem hiding this comment.
switch 커스텀할 때(깎을때) 기준 좌표를 잡아서 하는 방식이 떠올라서요!! 저는 trans를 처음 봐서 ㅋㅋ 참고만 해주세요 ㅎㅅㅎ
| extension Reactive where Base: MyPageInteractionView { | ||
| public var isInteractionEnabled: Binder<Bool> { | ||
| return Binder(base) { view, isEnabled in | ||
| view.updateEnabledStatus(isEnabled) | ||
| } | ||
| } |
There was a problem hiding this comment.
@EunHee-Jeong
.bind(interactionView.rx.isInteractionEnabled)와 같은 형식으로 데이터를 바로 바인딩할 수 있도록 해준 것입니다!
|
|
||
| public class MyPageInteractionView: UIView { | ||
|
|
||
| // MARK: - Properties | ||
|
|
||
| public enum InteractionType { | ||
| case pushOnOff | ||
| case timeSetting | ||
| } |
There was a problem hiding this comment.
오호 뷰 단위는 전부 DSKit의 Components로 따로 빼는건가유?
There was a problem hiding this comment.
@Suyeon9911 넵 일단 저는 그렇게 구현해놨는데 편하신대로 Presentation에 넣어도 될것 같슴당~~!
| private let naviBar = RDNaviBar() | ||
| .rightButtonImage(RDDSKitAsset.Images.icnBack.image) | ||
| .title("마이페이지") |
There was a problem hiding this comment.
요 네비바는 어디서 관리해주고 있나용? 어디 들어있는 친구여요?
There was a problem hiding this comment.
DSKit에 RDNaviBar에 있어요! 내비바는 다른 뷰에서 필요할 수도 있을 것 같아서 확장 가능하게 구현해뒀습니다
…m-iOS into feature/TeamRecorDream#16-SettingViewDesign # Conflicts: # RecorDream-iOS/Projects/Modules/RD-DSKit/Derived/Sources/TuistAssets+RDDSKit.swift
👻 작업한 내용
마이페이지 뷰 UI 구현
🎤 PR Point
📸 스크린샷
📮 관련 이슈