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, Codable, Moya で API クッキング!
Search
Akio Itaya
April 19, 2018
Technology
0
1.4k
RxSwift, Codable, Moya で API クッキング!
potatotips 50
Akio Itaya
April 19, 2018
Tweet
Share
More Decks by Akio Itaya
See All by Akio Itaya
How to build visionOS apps using Windows
akkeylab
0
130
How to build visionOS apps using Persona
akkeylab
1
250
Summary - Introducing enterprise APls for visionOS
akkeylab
0
440
Apple Vision Pro trial session
akkeylab
0
260
How to support Privacy Manifest
akkeylab
0
380
Let's make it compatible with visionOS!
akkeylab
0
240
Let's Join the Android community!
akkeylab
0
160
顔写真メイクアップアプリの開発におけるプライバシー保護とコスト削減のための手法
akkeylab
1
400
How to hide the key
akkeylab
0
320
Other Decks in Technology
See All in Technology
バクラクの組織とアーキテクチャ(要約)2025/01版
shkomine
13
3.2k
日本語プログラミングとSpring Bootアプリケーション開発 #kanjava
yusuke
2
370
テストアーキテクチャ設計で実現する高品質で高スピードな開発の実践 / Test Architecture Design in Practice
ropqa
3
280
DeepSeek on AWS
hariby
1
180
ソフトウェア開発現代史:製造業とソフトウェアは本当に共存できていたのか?品質とスピードを問い直す
takabow
15
5.7k
トレードオフスライダーにおける品質について考えてみた
suzuki_tada
3
200
Agentic AI時代のプロダクトマネジメントことはじめ〜仮説検証編〜
masakazu178
3
450
教師なし学習の基礎
kanojikajino
4
380
ソフトウェアアーキテクトのための意思決定術: Software Architecture and Decision-Making
snoozer05
PRO
18
4.2k
あなたはJVMの気持ちを理解できるか?
skrb
5
2.1k
extensionとschema
yahonda
1
150
アーキテクチャわからん、の話
shirayanagiryuji
0
220
Featured
See All Featured
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
160
15k
Designing for Performance
lara
604
68k
Thoughts on Productivity
jonyablonski
69
4.4k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.4k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.4k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.4k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.3k
Docker and Python
trallard
43
3.2k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
Code Reviewing Like a Champion
maltzj
521
39k
YesSQL, Process and Tooling at Scale
rocio
171
14k
Transcript
AKKEY / AKIO ITAYA Cyberagent, Inc. RxSwift, Codable, Moya API
cookingʂ
໊લɿ൘୩ ߊྑɹ/ɹ͖͋ͬʔʢAKKEYʣ ৬छɿiOS ׆ಈɿ@AkkeyLab Ұݴɿప։ൃޙͷԾதʹίʔσΟϯά͠·ͤΜʁ ࣗݾհ ※ֶੜ࣌ͷݸਓ։ൃʹͯ
ֶੜ࣌ͷݸਓ։ൃ͕ݩͷ͓ ʻ ҙ ʼ
ٕज़બఆ • RxSwift ɹɹʔʼɹKVO ຣফܭըͰͬͱษڧ͍ͨ͠ͱࢥͬͨ • Codable ɹɹʔʼɹApple ७ਖ਼ʹऒ͔Εͯ •
Moya ɹɹʔʼɹAlamofire Λར༻ͯ͠ Rx Ͱॻ͖͔ͨͬͨ
YouTube API Λͨͨ͘
TargetType protocol ڞ௨߲Λ extension Ͱఆٛ Codable
TargetType protocol ↓API ϦΫΤετͷ1ͭˣ Response Λ Codable Ͱࢦఆ
TargetType protocol - MultiTarget Singleton Ͱ provider ։์ʹΑΔ subscribe ෆՄΛࢭ
Singleton
TargetType protocol - MultiTarget Singleton Ͱ provider ։์ʹΑΔ subscribe ෆՄΛࢭ
Singleton TargetType ͷܕʹґଘ͠ͳ͍
TargetType protocol - MultiTarget Singleton Ͱ provider ։์ʹΑΔ subscribe ෆՄΛࢭ
Response Λ subscribe Մೳ Singleton TargetType ͷܕʹґଘ͠ͳ͍
TargetType protocol - MultiTarget Singleton Ͱ provider ։์ʹΑΔ subscribe ෆՄΛࢭ
Response ͷ Json ΛϚοϐϯά Response Λ subscribe Մೳ Singleton TargetType ͷܕʹґଘ͠ͳ͍
Codable ↓API ϦΫΤετͷ1ͭˣ
API ͷݺͼग़͠ Rx ͳॲཧͰγϯϓϧʹهड़Մ औಘ݅
API ͷݺͼग़͠ Rx ͳॲཧͰγϯϓϧʹهड़Մ औಘ݅ ֤छΛར༻ͨ͠ݸਓతͳ࣮
Result YouTube ranking Top 50 !!
࠷ۙͷ͓ؾʹೖΓͰ͢ʢস
GitHub / Qiita : @AkkeyLab
Thank you !!