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
- Refactoring
- swift documentation
- SWIFT
- UICollectionView
- rxswift
- uitableview
- 스위프트
- HIG
- 리펙터링
- ios
- combine
- tableView
- 리팩토링
- Human interface guide
- swiftUI
- uiscrollview
- collectionview
- Observable
- 애니메이션
- 클린 코드
- MVVM
- UITextView
- clean architecture
- 리펙토링
- RxCocoa
- map
- Clean Code
- Protocol
- Xcode
- ribs
Archives
- Today
- Total
목록2024/01/20 (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] extension을 활용한 네임스페이스 리펙토링 방법
일반적인 방법 네임스페이스를 구성할 때 보통 해당 클래스 혹은 해당 블록 안에 선언하여 구현 ex) 커스텀 버튼을 만들 때 (MyButton) 안쪽에 struct Config를 선언하여 사용 public class MyButton: UIButton { public struct Config { public let backgroundColor: UIColor public init(backgroundColor: UIColor) { self.backgroundColor = backgroundColor } } private let config: Config public init(config: Config) { self.config = config super.init(frame: .zero) setupUI() } ..
Refactoring (리펙토링)
2024. 1. 20. 13:51