일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- @ObservedObject
- The Composable Architecture
- SwiftData
- Custom URL Scheme
- Static Dispatch
- @main
- AnyCancellable
- async/await
- await
- 이것이나의다정입니다
- Dynamic Dispatch
- matchedGeometryEffect
- architecture
- SFSafariView
- @NameSpace
- SwiftUI
- combine
- Universal Link
- ios
- ScrollViewReader
- Combine vs Async/Await
- wwdc23
- fileprivate
- ScrollViewProxy
- swift
- @StateObject
- App Thinning
- async
- MVVM
- Concurrency Programming
Archives
- Today
- Total
목록Static Dispatch (1)
홍로그
Swift final을 쓰는 이유
final Swift는 class의 상속과 overriding을 지원함. class나 method, property에 final 키워드를 붙이면 상속이나 overriding을 막을 수 있음. vtable Virtual Dispatch Table. class 내부의 method들 중 어떠한 method를 호출해야 할지 결정하는 테이블. class가 상속될 수도 있고 overriding 가능성도 있기 때문에 부모 class의 method를 참조해야 할지 하위 class의 method를 참조해야 할지 확인해야 함. 이러한 과정이 런타임 시기에 vtable을 통해 이루어짐. Dynamic Dispatch method가 overriding 되어있는 경우 실행 시점에 유동적으로 어떤 method와 property를..
iOS
2022. 11. 1. 12:06