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
- MVVM
- map
- 리팩토링
- swift documentation
- Xcode
- 리펙토링
- tableView
- Observable
- clean architecture
- rxswift
- ribs
- SWIFT
- uiscrollview
- 리펙터링
- Protocol
- 스위프트
- UITextView
- combine
- collectionview
- Human interface guide
- Clean Code
- HIG
- Refactoring
- 애니메이션
- 클린 코드
- UICollectionView
- swiftUI
- RxCocoa
- uitableview
- ios
Archives
- Today
- Total
목록2024/07/03 (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] 소유권 개념 이해하기 (consume, mutate, borrow)
value를 사용할때의 ownershipvalue를 사용하면 어떻게든 소유권 시스템을 갖음var array = [1,2,3] // array는 [1,2,3]에 관한 소유권을 갖음소유권 시스템값을 소비(consume)하거나 변경하거나(mutate) 빌리는(borrow) 것Consuming values 개념representation의 소유권을 한고셍서 다른 곳으로 이전한다는 의미value를 넘길때 consuming 파라미터를 사용하여 구현ex) 아래 코드에서 발생하는 consuming 이해하기array에 값을 assign할 때, 초기 값의 소유권을 array 변수로 이전함array입장에서 초기값의 소유권을 갖게되므로 "consuming" 함func makeArray() { var array = [1.0, ..
iOS 응용 (swift)
2024. 7. 3. 01:02