์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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
- SwiftUI
- Lv2
- TCA
- tableView
- raywenderlich
- SnapKit
- designpattern
- arkit
- ios
- rxcocoa
- reactorkit
- Kuring
- Xcode
- visionOS
- MVVM
- Swfit
- RxSwift
- ๋ฐฑ์ค
- combine
- CollectionView
- ํจ์คํธ์บ ํผ์ค
- Flutter
- UIKit
- node.js
- ํ๋ก๊ทธ๋๋จธ์ค
- realm
- BFS
- XCTest
- swift
- BOJ
Archives
- Today
- Total
๋ชฉ๋กCodingKey (1)
lgvv98
๐ผ ch15 ๊ฒ์์ ์ด์ฉํด ์๋ฒ์์ ๋ฐ์ดํฐ๋ฅผ ๋ฐ์์ ํ์ฑ๊น์ง!
โ ์ด๋ฒ์๊ฐ์๋ ์๋ฒ์์ API๋ฅผ ๋ฐ์์์ ํ์ฑ๊น์ง ํ๋ ๊ฒ์ ์์๋ณด์! โ ์ด๋ฒ์๊ฐ์ ์์๋ณผ ์ฝ๋๋ ์๋์ ๊ฐ์ ์ฝ๋์ด๋ค. class SearchAPI { static func search(_ term: String, completion: @escaping ([Movie]) -> Void) { // completion ํด๋ก์ ๋ฅผ ์ฌ์ฉํ๊ธฐ ์ํ ๋ฐฉ๋ฒ // ์ด์ค์ผ์ดํ์ด ์์ผ๋ฉด ํจ์๊ฐ ์ข ๋ฃ๋๊ณ ๋์ ์คํ let session = URLSession(configuration: .default) // 1. ์ธ์ ๋ง๋ค๊ธฐ var urlComponents = URLComponents(string: "https://itunes.apple.com/search?")! let mediaQuery = URLQueryItem(n..
โ ๏ธ deprecated โ ๏ธ/ํจ์บ (์ฌ์ธ์)
2021. 6. 29. 11:28