์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
- Mac
- Firestore
- ์ฑ๋์์ธ
- DispatchQueue
- RxSwift
- Cloud Firestore
- ์ฑ๋ง๋ค๊ธฐ
- ์๊ณ ๋ฆฌ์ฆ
- Core Data
- ExpressJS
- Reduce
- Decodable
- CRUD
- Encodable
- AVAudioPlayer
- nodejs
- Codable
- UIRefreshController
- Figma
- SWiFT
- MongoDB
- String.Index
- ios
- Filter
- mongoose
- ์ง๋ฒ๋ณํ
- Firestore CRUD
- map
- ํ๋ก๊ทธ๋๋จธ์ค
- components
- Today
- Total
๋ชฉ๋กCollection (2)
Focus On Develop ๐ค๐ค

์ค๋์ Google Firebase Cloud Firestore์ ๋ํด์ ๊ณต๋ถํด๋ณด๋ ค๊ณ ํฉ๋๋ค! ์๊ธฐ ๋ค์ด๊ฐ์ ๊ตฌ๊ธ๊ณ์ ์ผ๋ก ๋ก๊ทธ์ธํ๊ณ ๋๋ฌ๋ณด์๊ธธ!! ใ ใ ใ console.firebase.google.com/ ๋ก๊ทธ์ธ - Google ๊ณ์ ํ๋์ ๊ณ์ ์ผ๋ก ๋ชจ๋ Google ์๋น์ค๋ฅผ Google ๊ณ์ ์ผ๋ก ๋ก๊ทธ์ธ accounts.google.com ์ฐ๋ฆฌ๊ฐ ์ฑ์ ๊ฐ๋ฐํ ๋ ๋ก์ปฌ ์ ์ฅ์์ธ UserDefault, CoreData๋ง ํ์ํ ๊ฒฝ์ฐ๋ ์ ์ธํ๊ณ , ๋ถ๋ช ํ ์๊ฒฉ Database๊ฐ ํ์ํ๊ฒ ์ฃ ? ์๋ฅผ ๋ค์ด์ ์นด์นด์คํก ์ฑํ ์ด๋, ๊ณต์ ๋ฌธ์ํจ ๋ฑ์ ์ฌ์ฉ์ A์ B๊ฐ ์๋ก ๋๊ธฐํ๋๋ ์ฑํ๋ฉด์ ๋ด์ผํ๋ค๋ฉด, ๋ก์ปฌ ์ ์ฅ์์ ๋ฐ์ดํฐ๋ฅผ ์ ์ฅํ๋ ๊ฒ๋ง์ผ๋ก๋ ๋ถ๋ช ํ ๋ถ์กฑํ๊ฒ ์ฃ ! A๊ฐ ์ฑํ ์ ๋ณด๋ด๋ฉด ์ด๋๊ฐ Database์ ๋ด์ฉ์ด ์ ์ฅ๋..

์์ธ๋ด์ฉ : Set | Apple Document ๊ทธ๋ ๋ค๊ณ ํ๋ค.. Apple Developer Documenet๋ ์ฝ๋ ์ต๊ด์ ๋ค์ด๋๊ฒ ์ค์ํ๊ธด ํ์ง๋ง ์ญ์ ์์ด๋ ์ด๋ ต๋ค ใ ใ ์ค๋๋ ๋๋ฆ๋๋ก ์์๋ณผ ์ ์๋ ๋์ ์ธ์ด๋ก ์ ๋ฆฌํด๋ฌ์ผ๊ฒ ๋ค. Set(์งํฉ)์ Hashable ํ์ ์ ๋ด๋ Collection ์๋ฃ๊ตฌ์กฐ ์ค ํ๋๋ก, ์ค์ ์ํ์์์ ์งํฉ๊ณผ ๋น์ทํ ํน์ง์ ๊ฐ๋๋ค. "์์๋ ์ค์ํ์ง ์๊ณ , ์ค๋ณต๊ฐ์ ํ์ฉํ์ง ์๋, Type์ด ๊ฐ์ ๋ฐ์ดํฐ๋ค์ ๋ชจ์" ๊ทธ๋ผ Set์ ์ด๋ป๊ฒ ์ฐ๋์ง ๋ณด์. 1. Set ์์ฑ var mySet = Set() var mySet2: Set = [] 2. Set์ ๋ฐ์ดํฐ ์ฝ์ , ์ญ์ var mySet: Set = ["my", "name", "is", "kt"] // Type์ Se..