Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
RxSwiftくんすげぇ.pdf
Search
tiking
August 22, 2020
0
75
RxSwiftくんすげぇ.pdf
tiking
August 22, 2020
Tweet
Share
More Decks by tiking
See All by tiking
デザインシステムっていいな
tiking76
0
200
GraphQL 入門
tiking76
0
1.4k
みんなTCAって 知ってる?ver2.0
tiking76
1
330
みんなTCAって知ってる?
tiking76
0
980
最近きてるかもって思ってるデザイン
tiking76
0
260
Swiftのちょっとうれしい構文
tiking76
0
100
p1assさんを作ろうと試みました
tiking76
0
150
PRのときに使われがちな略語のやつ
tiking76
0
120
swiftでもグラフ書いてみたくない??
tiking76
0
240
Featured
See All Featured
Building a Scalable Design System with Sketch
lauravandoore
462
33k
GraphQLとの向き合い方2022年版
quramy
49
14k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
770
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
1k
The Pragmatic Product Professional
lauravandoore
35
6.8k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
47
9.6k
Producing Creativity
orderedlist
PRO
346
40k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
283
13k
A better future with KSS
kneath
238
17k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
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
ありがとうございました!!