Closed Taehyeon-Kim closed 1 year ago
BottomDetailView 레이아웃을 구현했어요.
func showBottomSheet(withDuration duration: Double = 0.3) { let movement = Metrics.bottomSheetBottom bottomSheetView.snp.updateConstraints { $0.bottom.equalToSuperview().inset(movement) } UIView.animate(withDuration: duration) { [weak self] in self?.layoutIfNeeded() } }
func hideBottomSheet(withDuration duration: Double = 0.3) { let movement = -(Metrics.bottomSheetViewHeight + Metrics.bottomSheetBottom) bottomSheetView.snp.updateConstraints { $0.bottom.equalToSuperview().inset(movement) } UIView.animate(withDuration: duration) { [weak self] in self?.layoutIfNeeded() } }
🔍 What is this PR?
BottomDetailView 레이아웃을 구현했어요.
📝 Changes
🗣 Comment
📌 Usage
📸 Screenshot
☑️ Test Checklist
📮 관련 이슈