일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 클린 코드
- Protocol
- ribs
- 리펙터링
- 리팩토링
- uiscrollview
- swift documentation
- Refactoring
- Clean Code
- tableView
- Human interface guide
- HIG
- MVVM
- combine
- map
- Observable
- RxCocoa
- SWIFT
- rxswift
- UITextView
- 스위프트
- Xcode
- 리펙토링
- uitableview
- 애니메이션
- clean architecture
- UICollectionView
- swiftUI
- ios
- collectionview
- Today
- Total
목록isHighlighted (2)
김종권의 iOS 앱 개발 알아가기
UITableViewCell, UICollectionViewCell에서의 highlighted 애니메이션 가장 쉽게 접근하기위해서 Cell에서 highlighted가 트리거 될 때, cell 속성에 배경색이나 이미지를 바꾸는 등을 할 수 있지만 cell은 UIButton과 다르게 highlighted의 값이 true, false가 빠르게 바뀌어, 적용이 안되는 것처럼 보이는 문제가 존재 아래처럼 셀을 탭할 때 highlighted 애니메이션이 안들어간것처럼 보이는 현상 존재 (길게 누르고 있어야 highlighted 확인 가능) // in MyTableViewCell override func setHighlighted(_ highlighted: Bool, animated: Bool) { super.set..
isHighlighted 버튼을 눌렀을 때, isHighlighted = true로 변경되었다가, isHighlighted = false로 다시 변경 * isHighlighted 상태 확인 방법 - UIButton의 isHighlighted 프로퍼티를 override하여 didSet으로 확인 public protocol AnimationButtonDelegate: AnyObject { func didChangeHighlighted(highlighted: Bool) } class AnimationButton: UIButton { weak var delegate: AnimationButtonDelegate? override var isHighlighted: Bool { didSet { self.delegat..