์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
- raywenderlich
- node.js
- MVVM
- designpattern
- UIKit
- SwiftUI
- Kuring
- BOJ
- combine
- ios
- XCTest
- Flutter
- Swfit
- visionOS
- SnapKit
- ํ๋ก๊ทธ๋๋จธ์ค
- ํจ์คํธ์บ ํผ์ค
- ๋ฐฑ์ค
- Lv2
- RxSwift
- Xcode
- rxcocoa
- arkit
- CollectionView
- swift
- BFS
- reactorkit
- realm
- tableView
- TCA
- Today
- Total
๋ชฉ๋กreactorkit (9)
lgvv98
ReactorKit + RxDataSources #2 (RxTableViewSectionedAnimatedDataSource) ๊ฐ๋ฐํ๊ฒฝ ReactorKit 3.2.0 RxDataSources 5.0.2 SnapKit 5.6.0 Xcode 14.0 1ํธ์ ๊ธฐ๋ฐ์ผ๋ก ํ๊ณ ์์ต๋๋ค. https://rldd.tistory.com/501 ReactorKit + RxDataSources #1(SectionModelType) ReactorKit + RxDataSources #1(SectionModelType) ๊ฐ๋ฐํ๊ฒฝ ReactorKit 3.2.0 RxDataSources 5.0.2 SnapKit 5.6.0 Xcode 14.0 RxDataSource๋ ์ด์ ์๋ ๋ง์ด ์ฌ์ฉํด๋ด. DiffableDataSource๋ฅผ ์ดํด..
ReactorKit + RxDataSources #1(SectionModelType) ๊ฐ๋ฐํ๊ฒฝ ReactorKit 3.2.0 RxDataSources 5.0.2 SnapKit 5.6.0 Xcode 14.0 RxDataSource๋ ์ด์ ์๋ ๋ง์ด ์ฌ์ฉํด๋ด. DiffableDataSource๋ฅผ ์ดํดํ๊ณ ์๋ค๋ฉด ์ฌ์ฉํ๊ธฐ ๋ ํธํจ. ์ด ํฌ์คํ ์ RxDataSources ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ์์๋(?)๋ฅผ ์ต๋ํ ๊ธฐ๋กํด ๋๋ ค๊ณ ํจ. ํน์ง: 1. ์น์ ๋ง๋ค ๋ค๋ฅธ ์ ์ ์ ์ฉ 2. tableView๋ฅผ ํ์ฉํ์ฌ ๋์ ๋์ด๋ฅผ ๊ตฌํํจ. 3. ReactorKit + RxDataSource 4. cellReactor์ initialState์ ๊ฐ์ Model๋ก ์ด๊ธฐํ ๐ฟ ๊ฒฐ๊ณผ๋ฌผ UI ๐ฟ โ ์ ์ฒด ์ฝ๋ โ Step 1. ๋ชจ๋ธ์ ์ ์ํ๊ธฐ..
ReactorKit ๊ณต๋ถํ๊ธฐ #7 View (programming) ReactorKit์ ๋ง์ ์์ ๋ค์ด ์คํ ๋ฆฌ๋ณด๋ ๊ธฐ๋ฐ์ผ๋ก ์์ฑ๋์ด ์๊ธฐ์ ์ฝ๋ ๊ธฐ๋ฐ์ ์์ ๋ฅผ ์์ฑํด ๋ด. ์์ฝ 1. ์์ฃผํ๋ ์ค์ - ReactorKit ์ฌ์ฉํ ๋ : ๋ฆฌ์กํฐ reference๋ฅผ ์๋ฌด๋ฐ๋ ์์ก์์ค์ deinit ๋์ด์ ๊ฒฐ๊ตญ ์๋ํ์ง ์๋ ์ค์ 2. ์์ฃผํ๋ ์ค์ - bind ๋ด๋ถ์ ์ผ๋ก ํธ์ถ๋๋๋ฐ ๋ช ์์ ์ผ๋ก ๋ ํธ์ถํ๋๊ฑฐ : init์ผ๋ก ํ ์ ์์. ์ฐ์ ReactorKit์ ์ ์ธ๋ ํ๋กํ ์ฝ View๋ฅผ ์ด์ด๋ณด์. extension ๋ถ๋ถ์ ๋ณด๋ฉด ์๊ฒ ์ง๋ง, bind๊ฐ ํธ์ถ๋๊ณ ์์. bind๋ฅผ ViewDidLoad()์์ ๋ช ์์ ์ผ๋ก ํธ์ถํ์ง ์์๋ ๋๋ค. โ ViewController โ import UIKit import R..
ReactorKit ๊ณต๋ถํ๊ธฐ #6 transform โ ๊ฒฐ๊ณผ๋ฌผ UI โ (ReactorKit ๊ณต์๋ฌธ์) https://github.com/ReactorKit/ReactorKit GitHub - ReactorKit/ReactorKit: A library for reactive and unidirectional Swift applications A library for reactive and unidirectional Swift applications - GitHub - ReactorKit/ReactorKit: A library for reactive and unidirectional Swift applications github.com Global States Unlike Redux, ReactorKit ..
ReactorKit ๊ณต๋ถํ๊ธฐ #5 RxTodo ๋ฐ๋ผ์ก๊ธฐ (3) โ ๋ชฉํ: Service ๋์ ์ ์ํด RxTodo ์ฝ๋ ๋ถ์ํ๊ธฐ โ ๋ด ํ๋ก์ ํธ์์ ์๋น์ค ๋์ ํ ๊ฒฐ๊ณผ ์ฝ๋ ๐จ Realm์์ tableView.rx.itemMoved์, ๋ ์ฝ๋ ์์ ์ด๋ป๊ฒ ๋ฐ๊ฟ์ผํ ์ง ๋ชจ๋ฅด๊ฒ ์. Realm์ ๋ํ ์ดํด๊ฐ ๋ถ์กฑํด์ ์ฑ์ด crash ๋๋ ๊ฒฝ์ฐ๊ฐ ๋ง์๋ฐ, ์ด๋ฅผ ํ์ตํด์ ๋ณด์ํด์ผํจ. Realm์ Token์ ์ฌ์ฉํด์ ๋ณ๊ฒฝ๋ ๋ฐ์ดํฐ์ ์ฑํฌ๋ฅผ ๋ค๋ฅธ View์์ ๋ง์ถ ์ ์์. ์ฝ๋๋ฅผ ๋ถ์ํ๋ฉด์ Realm์ ์๋ฒฝํ๊ฒ ์ ์ฉํ์ฌ ๋ง๋ค์ง๋ ๋ชปํ์ง๋ง, BaseViewController๋ Service๊ฐ ์ ํ์ํ์ง ํ์คํ๊ฒ ๋๋ ์๊ฐ์ด์์. ๋ค์ ์คํ ์ผ๋ก Realm์ ๋ ํ์ตํด์ ์๋ฒฝํ๊ฒ ์ ์ฉํด๋ณด์. โ RxTodo Servic..
ReactorKit ๊ณต๋ถํ๊ธฐ #4 RxTodo ๋ฐ๋ผ์ก๊ธฐ (2) ์ด๋ฒ์๋ ์ง๋ ์๊ฐ create๋ฅผ ํ๋ค๋ฉด, delete๋ฅผ ์งํํด ๋ณผ ์์ . ํด๋น ํ์ผ ๐ฟ ๊ตฌํ ์ฝ๋ ๐ฟ ์ด๋ ค์ ๋ ์ : Action์ ๊ฒฝ์ฐ์๋ ์ ์ํ๊ธฐ๊ฐ ๊ทธ๋ฆฌ ์ด๋ ต์ง ์์์ผ๋, Mutation์ ์ด๋ป๊ฒ ์ค์ผํ ์ง ์๊ฐ์ ๋ง์ดํ์์. // // TaskListViewController.swift // AppleCollectionView // // Created by Hamlit Jason on 2022/09/07. // import UIKit import ReactorKit final class TaskListViewController: UIViewController, View { var disposeBag = DisposeBag() let re..