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.5k
RxSwift, Codable, Moya で API クッキング!
potatotips 50
Akio Itaya
April 19, 2018
Tweet
Share
More Decks by Akio Itaya
See All by Akio Itaya
Learn CPU architecture with Assembly
akkeylab
1
1.4k
Porting a visionOS App to Android XR
akkeylab
0
1k
How to handle 3D content on Android XR
akkeylab
0
150
Create a website using Spatial Web
akkeylab
0
350
How to build visionOS apps using Windows
akkeylab
0
180
How to build visionOS apps using Persona
akkeylab
1
380
Summary - Introducing enterprise APls for visionOS
akkeylab
0
520
Apple Vision Pro trial session
akkeylab
0
320
How to support Privacy Manifest
akkeylab
0
430
Other Decks in Technology
See All in Technology
Wasmのエコシステムを使った ツール作成方法
askua
0
170
[Codex Meetup Japan #1] Codex-Powered Mobile Apps Development
korodroid
2
800
Performance Insights 廃止から Database Insights 利用へ/transition-from-performance-insights-to-database-insights
emiki
0
280
能登半島地震において デジタルができたこと・できなかったこと
ditccsugii
0
200
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
930
20251010_HCCJP_AdaptiveCloudUpdates
sdosamut
0
130
BI ツールはもういらない?Amazon RedShift & MCP Server で試みる新しいデータ分析アプローチ
cdataj
0
160
AWS IoT 超入門 2025
hattori
0
340
Claude Codeを駆使した初めてのiOSアプリ開発 ~ゼロから3週間でグローバルハッカソンで入賞するまで~
oikon48
8
3.4k
Geospatialの世界最前線を探る [2025年版]
dayjournal
1
220
LLMアプリの地上戦開発計画と運用実践 / 2025.10.15 GPU UNITE 2025
smiyawaki0820
1
570
incident_commander_demaecan__1_.pdf
demaecan
0
140
Featured
See All Featured
YesSQL, Process and Tooling at Scale
rocio
173
14k
Code Review Best Practice
trishagee
72
19k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.6k
The Pragmatic Product Professional
lauravandoore
36
6.9k
Mobile First: as difficult as doing things right
swwweet
224
10k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.1k
Documentation Writing (for coders)
carmenintech
75
5.1k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
Why You Should Never Use an ORM
jnunemaker
PRO
59
9.6k
Making Projects Easy
brettharned
120
6.4k
Making the Leap to Tech Lead
cromwellryan
135
9.6k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
45
2.5k
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 !!