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
- BFS
- coordinator
- scene delegate
- custom navigation bar
- task cancel
- OAtuh 2.0
- swift associated type
- swift concurrency
- swift navigationcontroller
- Tuist
- swift 백준
- RxSwift
- reactorkit
- uikit toast
- 버튼 피드백
- DP
- task cancellation
- swift existential type
- identifiable
- 드롭다운 버튼
- button configuration
- swift custom ui
- custom ui
- swift opaque type
- swift 점선
- SWIFT
- swift bottomsheet
- UIKit
- custombottomsheet
- swift dashed line
Archives
- Today
- Total
목록identifiable (1)
김경록의 앱 개발 여정
[Swift] Identifiable
Identifiable이란 무엇인가?Swift의 Identifiable은 각 객체가 고유한 ID로 식별될 수 있도록 하는 프로토콜입니다. 이 프로토콜은 id라는 고유 속성을 요구하며, id는 Hashable 및 Equatable을 준수해야 합니다. 이를 통해 컬렉션 내에서 객체를 빠르게 구분하거나 중복을 방지할 수 있습니다.protocol Identifiable { associatedtype ID: Hashable var id: ID { get }}기본적으로 UUID나 Int, String 등 Hashable한 타입이면 id로 사용할 수 있습니다. 언제 써야 하는가?Identifiable을 언제 사용해야 하는지는 주로 객체의 고유성을 식별할 필요가 있는지에 따라 달라집니다. 다음과 같은 경우 ..
TIL
2025. 3. 28. 23:11