Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
RxSwiftくんすげぇ.pdf
Search
tiking
August 22, 2020
0
77
RxSwiftくんすげぇ.pdf
tiking
August 22, 2020
Tweet
Share
More Decks by tiking
See All by tiking
デザインシステムっていいな
tiking76
0
210
GraphQL 入門
tiking76
0
1.5k
みんなTCAって 知ってる?ver2.0
tiking76
1
350
みんなTCAって知ってる?
tiking76
0
1k
最近きてるかもって思ってるデザイン
tiking76
0
280
Swiftのちょっとうれしい構文
tiking76
0
120
p1assさんを作ろうと試みました
tiking76
0
160
PRのときに使われがちな略語のやつ
tiking76
0
130
swiftでもグラフ書いてみたくない??
tiking76
0
260
Featured
See All Featured
How to Ace a Technical Interview
jacobian
281
24k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
90
Designing Experiences People Love
moore
143
24k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
96
Building Adaptive Systems
keathley
44
2.9k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
120
Code Review Best Practice
trishagee
74
19k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
2
2.7k
How STYLIGHT went responsive
nonsquared
100
6k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
23
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
130
Transcript
RxSwiftくんすげぇ 2020/8/8 CAMPHOR - LT 2020 Summer @tikin0716
Readme name : 舘佳紀 colleage : 会津大学学部3年 さーくる : Zli所属です
Handlename : チキング 好きな言語 swift twitter @tikin0716 gitHub tiking76
そもそもRxってなに?? RxとはReactive xの略称で、「オブザーバパターン」「イテレータパターン」「関数型プロ グラミング」の概念を実装している拡張ライブラリです。
メリット Rxを導入するメリットは、 ・「値の変化を検知できる」 ・「非同期の処理を簡潔に書ける」
今回やったこと RxSwiftを使った実装とノンライブラリで実装した物 を比較した話
共通しているところ ・api呼び出しのところ ・画面遷移のところ ・UIコンポーネントのコンフィグについて
api呼び出し&画面遷移
UIコンポーネントのコンフィグ
変更したところ ・Textviewとボタンのバリデーション
変更前
変更後
DEMO (時間があったら…)
None
比較してみて感じたこと ・やっぱりRxSwiftを使うとイベントの処理や記述量が減って最高!!。 ・今回みたいな簡単な実装ならすぐ書けそうだけど、複雑になるとスト リームの管理が大変 そう。
参考にしました ・Qiita - それ、RxSwiftで書いてみましょう(入門編) https://qiita.com/Narakkyyyyy/items/39e76cfd188b1595293f
ありがとうございました!!