Swift 5.6 @frozen struct GeometryReader where Content : View ์ด๊ฑฐํ์ ๊ฒฝ์ฐ ๋๋ ๊ตฌ์กฐ์ฒด์ ์ ์ฅ๋ ์ธ์คํด์ค ํ๋กํผํฐ๋ฅผ ์ถ๊ฐ, ์ ๊ฑฐ, ์ฌ์ ๋ ฌํ์ฌ ์ ์ธ์ ๋ฐ๊ฟ ์ ์๋ค. frozen ์ผ๋ก ํ์ํ๋ฉด ์ถ๊ฐ์ ์ธ ์ต์ ํ๋ฅผ ์งํํ ์ ์๊ธฐ ๋๋ฌธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ํฅํ ๋ฒ์ ์ ์ ํ์ ์ผ๋ก๋ง ๋ณ๊ฒฝํ ์ ์๋๋ก ํ์ง๋ง ์ด์ ๊ฐ์ ์ฑ๋ฅ์ ์ป๊ธฐ๋๋ฌธ์ flexibility ๋ฅผ ํฌ๊ธฐํ ์ ์๋ค๊ณ ํฉ๋๋ค. frozen ์ด๊ฑฐํ์ ๋ํ switch ๋ฌธ์ default case ๋ฅผ ํ์๋ก ํ์ง ์์ต๋๋ค. ํด๋น ์ด๊ฑฐํ switch ๋ฌธ์์ default, @unknown ๊ธฐ๋ณธ ์ผ์ด์ค๋ฅผ ํฌํจํ๋ฉด ํด๋น ์ฝ๋๊ฐ ์คํ๋์ง ์๊ธฐ ๋๋ฌธ์ warning ์ด ๋ฐ์ํฉ๋๋ค. Attributes - The Swift ..
ViewBuilder Closure์์ View๋ฅผ ๊ตฌ์ฑํ๋ custom parameter attribute ๊ทธ๋ผ์ด์ ์์์ ๋งํ ์๋ฅผ๋ค์ด HStack View Builder ๋ ๋ฌด์์ด๋! ๋ค์์ HStack ์ ์ด๋์ ๋ผ์ด์ ์ ๋๋ค. @inlinable public init(alignment: VerticalAlignment = .center, spacing: CGFloat? = nil, @ViewBuilder content: () -> Content) ์ด... body ๋ผ๋ ๋จ์ด๋ ๋ญ๊ฐ ์๋์? ์ var body ๋ง ๊ฐ๋ฅํด์? body ๋ฅผ ์ฌ์ฉํ์ง ์์ผ๋ protocol ์ ์ฑํํ์ง ๋ชปํ๋ค๊ณ ์๋ฌ๊ฐ ๋์ค๋ค์! body ๋ ์์์ ์ผ๋ก @ViewBuilder ๋ก ์ ์ธ๋์ด์๊ธฐ ๋๋ฌธ์ ํด๋ก์ ์์ ๋ทฐ๋ฅผ ๊ตฌ์ฑํ ์..
https://github.com/uber/RIBs ๋ด์ฉ RIBs ํํ ๋ฆฌ์ผ 2 ๋ฅผ ์งํํ๊ฒ ์ต๋๋ค! ๋ณธ ๊ธ์ RIBs tutorial 2 ๋ฅผ ๋ฒ์ญ ๋ฐ ๊ถ๊ธํ ๋ด์ฉ๋ค์ ์ถ๊ฐํ์ฌ ์์ฑํ์์ต๋๋ค. iOS Tutorial 2 · uber/RIBs Wiki Note: If you haven't completed tutorial 1 yet, we encourage you to do so before jumping into this tutorial. Goals ์ด์ ํํ ๋ฆฌ์ผ์์ LoggedOut RIB ๋ก ๊ตฌ๋๋๋ login form ์ ํฌํจํ๋ ์ฑ์ ๋ง๋ค์์ต๋๋ค. ์ด๋ฒ์๋ ๋ก๊ทธ์ธํ ํ ๊ฒ์ํ๋๋ฅผ ํ์ํ๋๋ก ์ฑ์ ํ์ฅํ ๊ฒ์ ๋๋ค. ๋ง์ง๋ง์๋ RIBs ๋ฅผ unit test ํ๋ ๋ฐฉ๋ฒ์ ๊ฐ๋ ฅํ๊ฒ ์ค๋ช ํ๊ฒ ์ต๋๋ค. ์ฃผ..
WWDC21) Build a research and care app, part 2: Schedule tasks Build a research and care app, part 2: Schedule tasks - WWDC21 - Videos - Apple Developer *๋ณธ ๊ธ์ WWDC ๋ฅผ ๋ณด๊ณ , ๋ฒ์ญ ๋ฐ ์์ฝ ๊ทธ๋ฆฌ๊ณ ์คํํด๋ณด๋ ์คํฐ๋ ํ๋ก์ ํธ์ ์ผํ์ ๋๋ค. ๋ค์ด๊ฐ๊ธฐ์ ์ ResearchKit ๊ณผ CareKit ์ ๋ํด์ ๋ ๋ง์ ์ ๋ณด๋ฅผ ์ป๊ณ ์ถ๋ค๋ฉด ์๋์ ์๊ฐ๊ธ๋ ๋์์ด ๋ ๊ฒ์ ๋๋ค. ResearchKit๊ณผ CareKit part1 ์์๋ onboarding ๊ณผ consent ์ ๋ํด์ ๋ง์ณค์ต๋๋ค. ๐คฆ๐ปโ๏ธ Erick: oh, hang on. Jamie ๋ก๋ถํฐ ๋ฉ์์ง๋ฅผ ๋ฐ์ ๊ฒ ๊ฐ์ต๋๋ค. “์ฑ์ ๋..
WWDC21) Build a research and care app, part 1: Setup onboarding Build a research and care app, part 1: Setup onboarding - WWDC21 - Videos - Apple Developer *๋ณธ ๊ธ์ WWDC ๋ฅผ ๋ณด๊ณ , ๋ฒ์ญ ๋ฐ ์์ฝ ๊ทธ๋ฆฌ๊ณ ์คํํด๋ณด๋ ์คํฐ๋ ํ๋ก์ ํธ์ ์ผํ์ ๋๋ค. ๋ค์ด๊ฐ๊ธฐ์ ์ ResearchKit ๊ณผ CareKit ์ ๋ํด์ ๋ ๋ง์ ์ ๋ณด๋ฅผ ์ป๊ณ ์ถ๋ค๋ฉด ์๋์ ์๊ฐ๊ธ๋ ๋์์ด ๋ ๊ฒ์ ๋๋ค. ResearchKit๊ณผ CareKit WWDC ๋ด์ฉ research and care app ์ ๋ง๋ค์ด ๋ณผ ๊ฒ์ ๋๋ค. ์ฒซ๋ฒ์งธ ๋จ๊ณ์ ๋๋ค. onbarding ๊ณผ consent ์ ๋ํ ์ธ์ ์ ๋๋ค. ResearchKi..
๋ด์ฉ MainActor ๋ฅผ ์ฌ์ฉํด์ main thread ์์์ ๋์์ ๋ณด์ฅํด๋ณด์. MainActor ๋ Concurrency ์ Actors API collection ์ค ํ๋์ ๋๋ค. Apple Developer Documentation MainActor Apple Developer Documentation A singleton actor whose executor is equivalent to the main dispatch queue. ์ฆ, mian thread ์์์ ๋์์ ๋ณด์ฅํ๋ Actor ์ ๋๋ค.MainActor ๋ฅผ ์ฌ์ฉํ๋ฉด DispatchQueue.main ์ ์ธ์ ์ฌ์ฉํ ์ง ๊ณ ๋ฏผํ์ง ์์๋ ๋ฉ๋๋ค! Task { do { movies = try await getMovie() await Mai..
๋ด์ฉ Actor ์ ํ์ฉํด์ ์ด๋ฏธ์ง๋ฅผ ์บ์ฑํ๋ ๋ค์ด๋ก๋๋ฅผ ๋ง๋ค์ด ๋ณด๊ฒ ์ต๋๋ค. async/await ์ ํ์ฉํด์ ์ด๋ฏธ์ง๋ฅผ ๋ค์ด๋ฐ๊ณ , ๊ทธ ์ดํ์ ์บ์ฑ ์ญํ ์ Actor ๋ก ๋ง๋ ImageDownloader ์์ ์ฒ๋ฆฌํ๋๋ก ํ๊ฒ ์ต๋๋ค. ์๋์ ์ธ์ ์ ์ฐธ๊ณ ํด์ ์ ์ฉํด๋ณด์์ต๋๋ค. Protect mutable state with Swift actors - WWDC21 - Videos - Apple Developer Create ImageDownloader with Actor ์ด๋ฏธ์ง ๋ค์ด๋ก๋ actor ๋ฅผ ๋ง๋ค์ด๋ณด๊ฒ ์ต๋๋ค. ์ด๋ฏธ์ง ๋ค์ด๋ก๋๋ ๋ค๋ฅธ ์๋น์ค์์ ์ด๋ฏธ์ง๋ฅผ ๋ค์ด๋ฐ๋ ์ญํ ์ ์ํํ๋ฉฐ, ๋ค์ด ๋ฐ์ ์ด๋ฏธ์ง๋ฅผ cache ์ ์ ์ฅํ์ฌ ๋์ผํ ์ด๋ฏธ์ง์ ๋ํ ์ค๋ณต ๋ค์ด๋ก๋๋ฅผ ๋ง์ต๋๋ค. cache ๋ฅผ ํ์ธํ๊ณ cache ..
๋ด์ฉ Error Handling. extension ์ ํ์ฉํ protocol method ์ ๊ธฐ๋ณธ ๊ตฌํ ์ค์ . request query ๋ฅผ ์ฌ์ฉํ GET ์๋ฒํต์ ์ ๊ตฌํ existential metatype ํ์ฉํด์ ๋์ฝ๋ฉ ์๋ฌ์ผ ๋ ํด๋น ์๋ฃํ ๋ค๋ฃจ๊ธฐ. ์ ๋ฐ์ ์ผ๋ก Moya ์ ๊ตฌ์กฐ๋ฅผ ๊ณต๋ถํ๋ฉด์ URLSession ์ ์ ๋ชฉ์์ผ์ ์งํ. ๊ตฌํ ๋ถ๋ถ HTTP Method: HTTP ๋ฉ์๋๋ฅผ ๊ฐ์ง๋ ๊ตฌ์กฐ์ฒด. Moya ์ฐจ์ฉ TargetType: ํด๋น ํ๋กํ ์ฝ์ ์ฑํํด์ Service ํ์ผ์ ๊ตฌํํ๊ธฐ ์์ํ๋๋ก ํ์ต๋๋ค. Moya ์ฐจ์ฉ Network Task: request ๋ฅผ ์์ ํ ๋ฐฉ๋ฒ์ ๊ฐ์ง๋ enum. Moya ์ฐจ์ฉ Parameter Encoding: ํ๋ผ๋ฏธํฐ๋ฅผ ์ธ์ฝ๋ฉํ๋ ๋ฐฉ๋ฒ์ ๊ฐ์ง๋ enum. Moy..
- APNS
- containerBackground
- WWDC
- configurable widget
- UserDefaults
- OpenSourceLibrary
- urlsession
- YPImagePicker
- Objective-C
- ์๋ฒํต์
- Algorithm
- WWDC22
- IOS
- Swift
- Firebase
- github
- Notification
- rxswift
- Protocol
- async/await
- watchOS
- MOYA
- projectsetting
- SwiftUI
- Widget
- 2022 KAKAO TECH INTERNSHIP
- MVVM
- CloneCoding
- RxCocoa
- WidgetKit
| ์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
|---|---|---|---|---|---|---|
| 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 |
- Total
- Today
- Yesterday