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
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
370
Summary - Introducing enterprise APls for visionOS
akkeylab
0
510
Apple Vision Pro trial session
akkeylab
0
310
How to support Privacy Manifest
akkeylab
0
420
Let's make it compatible with visionOS!
akkeylab
0
310
Other Decks in Technology
See All in Technology
下手な強制、ダメ!絶対! 「ガードレール」を「檻」にさせない"ガバナンス"の取り方とは?
tsukaman
2
450
EncryptedSharedPreferences が deprecated になっちゃった!どうしよう! / Oh no! EncryptedSharedPreferences has been deprecated! What should I do?
yanzm
0
420
Terraformで構築する セルフサービス型データプラットフォーム / terraform-self-service-data-platform
pei0804
1
180
Modern Linux
oracle4engineer
PRO
0
100
研究開発と製品開発、両利きのロボティクス
youtalk
1
530
Codeful Serverless / 一人運用でもやり抜く力
_kensh
7
440
250905 大吉祥寺.pm 2025 前夜祭 「プログラミングに出会って20年、『今』が1番楽しい」
msykd
PRO
1
960
Agile PBL at New Grads Trainings
kawaguti
PRO
1
440
AIエージェントで90秒の広告動画を制作!台本・音声・映像・編集をつなぐAWS最新アーキテクチャの実践
nasuvitz
0
190
Webアプリケーションにオブザーバビリティを実装するRust入門ガイド
nwiizo
7
860
人工衛星のファームウェアをRustで書く理由
koba789
15
8.1k
Snowflake Intelligenceにはこうやって立ち向かう!クラシルが考えるAI Readyなデータ基盤と活用のためのDataOps
gappy50
0
260
Featured
See All Featured
How GitHub (no longer) Works
holman
315
140k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
31
2.2k
Become a Pro
speakerdeck
PRO
29
5.5k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
Code Review Best Practice
trishagee
70
19k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
580
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
Designing for Performance
lara
610
69k
Scaling GitHub
holman
463
140k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3k
Building Better People: How to give real-time feedback that sticks.
wjessup
368
19k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3.1k
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 !!