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
- uiscrollview
- RxCocoa
- swift documentation
- 애니메이션
- swiftUI
- collectionview
- 클린 코드
- 리팩토링
- combine
- Refactoring
- MVVM
- Observable
- rxswift
- 리펙터링
- Clean Code
- ribs
- 스위프트
- Protocol
- clean architecture
- UITextView
- 리펙토링
- map
- ios
- tableView
- UICollectionView
- Xcode
- HIG
- Human interface guide
- uitableview
- SWIFT
Archives
- Today
- Total
목록method (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] Computed property vs method 구분
Compueted Property Concept: 객체의 다른 property가 변경 될 수 없고, 다른 속성이 변경되지 않으면 다른 시간에 계산된 property 값은 동일한 출력을 제공 시간 복잡도가 O(1) 어떤 예외도 throw하지 않는 경우 계산 비용이 저렴 ex) struct Point { var x = 0.0, y = 0.0 } struct Size { var width = 0.0, height = 0.0 } struct Rect { var origin = Point() var size = Size() var center: Point { get { let centerX = origin.x + (size.width / 2) let centerY = origin.y + (size.height /..
iOS 기본 (swift)
2021. 7. 25. 23:18