์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
- node.js
- tableView
- arkit
- ํ๋ก๊ทธ๋๋จธ์ค
- realm
- designpattern
- raywenderlich
- ๋ฐฑ์ค
- visionOS
- BFS
- XCTest
- Flutter
- combine
- RxSwift
- ios
- BOJ
- swift
- SnapKit
- TCA
- CollectionView
- reactorkit
- Lv2
- Xcode
- Swfit
- ํจ์คํธ์บ ํผ์ค
- MVVM
- Kuring
- UIKit
- SwiftUI
- rxcocoa
- Today
- Total
๋ชฉ๋กPOD (2)
lgvv98
- EqutableView๋? > EqutableView๋ ์ด์ ๊ฐ๊ณผ ๋น๊ตํ์ฌ ์ ๊ฐ์ด ์ด์ ๊ฐ๊ณผ ๋์ผํ ๊ฒฝ์ฐ ์์ ์ ๋ฐ์ดํธ๋ฅผ ๋ฐฉ์งํ๋๋ก ์ค๊ณ๋ ๋ทฐ์ ๋๋ค. `iOS 13.0+` `iPadOS 13.0+` `tvOS 13.0` `watchOS 6.0+` `visionOS 1.0+ Beta [apple-docs-EqutableView](https://developer.apple.com/documentation/swiftui/equatableview) ๐ก ๋ค์ด๊ฐ๊ธฐ ์ . - ์๋์ ๊ฐ๋ ์ ๋ํ ์ง์์ด ๋ฐ๋์ ํ์ํจ. ํ์ํ ์ด์ ๋ ๊ธ ์ ์ผ ์๋์์ ์ค๋ช - [Plain ol' Data](https://rldd.tistory.com/551) EqutableView Usage 1. ๋ด๊ฐ EqutableView๋ก ๋ง..
plain ol' data(POD) ๐ ์ ํ ๋ฌธ์์ ๋์์๋ ์ค๋ช [apple swift docs](https://github.com/apple/swift/blob/main/docs/ABIStabilityManifesto.md#type-properties) - ์ด๋ค ๋ฐ์ดํฐ ํ์ ์ ๋จ์ํ ๋ฐ์ดํฐ๋ฅผ ์ ์ฅํ๊ณ ์ถ๊ฐ์ ์ธ ๋ณต์ฌ, ์ด๋ ๋๋ ์๋ฉธ ์๋ฏธ๊ฐ ์์ต๋๋ค. ์ฆ, trivial(ํน์ POD)์ผ๋ก ์๋ ค์ง ์ด ๋ฐ์ดํฐ๋ ๊ทธ๋ค์ ๋นํธ๋ฅผ ๋ณต์ ํ๋ ๊ฒ์ผ๋ก copyํ ์ ์๊ณ , deallocation๋ฅผ ํตํด ์๋ฉธ๋๋ค. ๋ง์ฝ ๋ชจ๋ ๋ฉค๋ฒ์ ํ์ ์ด trivial์ด๋ผ๋ฉด ๊ทธ๊ฒ๋ํ ๋ํ trivial ํ์ ์ ๋๋ค. - ์ด๋ค ํ์ ์ด ๋นํธ ๋จ์๋ก ์ด๋๊ฐ๋ฅํ๋ค ๋ผ๋ ๊ฒ์ ๊ทธ๊ฒ์ ์ฃผ์์ ์์กดํ๋ ์ด๋ ํ ์ฌ์ด๋ ํ ์ด๋ธ์ ์ฐธ์กฐ๋ ์์ ๋๋ฅผ ์๋ฏธ..