๋ด์ฉ ForEach ๋ก ๋ฆฌ์คํธ๋ฅผ ๊ตฌ์ฑํ๋ ์ค ๋ญํน์ด ํ์ํ๋ค. ๋ญํน์ ํด๋น topShows(array ๋ฐ์ดํฐ) ์ index ๋ก ๋ค๋ฃจ๋ฉด ๋๊ธฐ ๋๋ฌธ์ ๋ฐ์ดํฐ์ ํฌํจ์ํค์ง ์์๋ค. ๊ทธ๋ฐ๋ฐ ๋ค์๊ณผ ๊ฐ์ ๊ฒฝ๊ณ ๊ฐ ๋ฑ์ฅํ๋ค. ๋ฌด์์ผ๊น? ๐ฅ Non-constant range: argument must be an interger literal Non-constant range: not an integer range ๋๋ค ์ผ์ ํ์ง ์๋ ๋ฒ์(์์ ๋ฒ์๊ฐ ์๋๋ค.)๋ผ๋ฉด์ ๊ฒฝ๊ณ ๋ฅผ ๋์ง๋๋ค. topShows ํ์ฌ ์ด๋์ ๋ผ์ด์ ๋ฅผ ํตํด์ ์ด๊ธฐํ ๋ฐ๋ var ๋ก ์ ์ธ๋์ด ์์ต๋๋ค. .indices : ์ค๋ฆ์ฐจ์์ ์ปฌ๋ ์ ์ subscribe ํ๋๋ฐ ์ ํจํ ์ธ๋ฑ์ค ํด๊ฒฐ? id ํ๋ผ๋ฏธํฐ๋ฅผ ๋ฑ๋กํด์ฃผ์๋๋ ๊ฒฝ๊ณ ๊ฐ ์ฌ๋ผ์ก์ต๋๋ค. struct ..
- UserDefaults
- APNS
- MOYA
- CloneCoding
- rxswift
- configurable widget
- ์๋ฒํต์
- WWDC22
- containerBackground
- MVVM
- Widget
- Protocol
- watchOS
- async/await
- RxCocoa
- Firebase
- projectsetting
- WWDC
- urlsession
- 2022 KAKAO TECH INTERNSHIP
- YPImagePicker
- IOS
- Notification
- WidgetKit
- github
- Algorithm
- Objective-C
- SwiftUI
- Swift
- OpenSourceLibrary
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
- Total
- Today
- Yesterday