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 |
Tags
- combine
- HIG
- swiftUI
- uitableview
- ribs
- Clean Code
- SWIFT
- Protocol
- RxCocoa
- 리펙터링
- uiscrollview
- collectionview
- Refactoring
- 애니메이션
- tableView
- clean architecture
- 리펙토링
- rxswift
- Xcode
- map
- 리팩토링
- UITextView
- MVVM
- 클린 코드
- UICollectionView
- 스위프트
- swift documentation
- Observable
- ios
- Human interface guide
Archives
- Today
- Total
목록사용자 정의 연산자 (1)
김종권의 iOS 앱 개발 알아가기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/IWmmz/btraKD9ncob/zyhMZ5xtaIkLcCfdumewCK/img.png)
Overflow Operator 단순히 +, -로 접근하면 overflow 런타임 에러 발생 overflow operator 추가: &+ 빼기: &- 곱셈: &* ex) Int16의 범위는 -32768 ~ 32767 var potentialOverflow = Int16.max print(potentialOverflow) // 32767 potentialOverflow = potentialOverflow &+ 1 print(potentialOverflow) // -32768 Operator method 연산자 재정의: static func로 정의 struct Vectror2D { var x = 0.0, y = 0.0 } extension Vectror2D { static func + (left: Vectr..
swift 공식 문서
2021. 7. 29. 23:45