Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- collectionview
- uitableview
- ribs
- 리팩토링
- Refactoring
- Observable
- swift documentation
- 리펙터링
- ios
- Protocol
- Clean Code
- Xcode
- rxswift
- UICollectionView
- SWIFT
- MVVM
- combine
- swiftUI
- RxCocoa
- UITextView
- Human interface guide
- tableView
- uiscrollview
- 리펙토링
- clean architecture
- map
- HIG
- 클린 코드
- 스위프트
- 애니메이션
Archives
- Today
- Total
목록슬라이드 바 (1)
김종권의 iOS 앱 개발 알아가기
[iOS - UI Custom] 14. slide-out bar (side bar)만들기 (CGAffineTransform사용)
1. 원리 최상단 뷰는 yellow, 바로 밑의 뷰는 blue 핵심은 blue.frame = CGRect(x: -view.frame.width, y:0, width: view.frame.width, hieght: view.frame.height), 35번라인 yellow.addSubview(blue), 36번라인 2. 뷰 이동 CGAffineTransform이용 "translationX: 10" 의미는 기존의 x좌표(이동 한 좌표가 아님)를 x = x+10 하라는 의미 48번라인 주의 ※ 48라인에서 translatationX: -50이면 다음과 같은 결과 발생 * 되돌릴 경우 간편하게 .identity사용 가능 * 애니메이션 효과 삽입 UIView.animate(withDuration: delay: u..
iOS 실전 (swift)/UI 커스텀(프로그래밍적 접근)
2020. 5. 1. 02:52