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 |
Tags
- SWIFT
- 리팩토링
- Xcode
- rxswift
- collectionview
- HIG
- UICollectionView
- 스위프트
- UITextView
- swiftUI
- Clean Code
- clean architecture
- Protocol
- combine
- 리펙토링
- Refactoring
- 클린 코드
- uiscrollview
- MVVM
- uitableview
- ribs
- Observable
- Human interface guide
- 애니메이션
- swift documentation
- map
- 리펙터링
- tableView
- RxCocoa
- ios
Archives
- Today
- Total
목록selected (2)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] UIButton 하나로 토글 버튼 구현 방법 (+ RxSwift, RxCocoa, isHighlighted, withLatestFrom)
UIButton 하나로 토글 버튼 구현 방법 UIButton에는 normal, selected, highlighted가 존재 normal과 selected 상태를 이용하여 토글 버튼으로 활용 highlighted애니메이션은 setImage(_:for:) 에서 for부분에 적용 normal -> highlighted 애니메이션은 for: .highlighted로 설정 selecte -> highlighted 애니메이션은 배열로 선언 [.selected, .highlighted] button.setImage(UIImage(named: "play"), for: .normal) button.setImage(UIImage(named: "play-pressed"), for: .highlighted) button.s..
iOS 기본 (swift)
2022. 4. 26. 23:43