Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
RxSwift, Codable, Moya で API クッキング!
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Akio Itaya
April 19, 2018
Technology
1.6k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
RxSwift, Codable, Moya で API クッキング!
potatotips 50
Akio Itaya
April 19, 2018
More Decks by Akio Itaya
See All by Akio Itaya
Androidだけじゃない、DroidKaigiで広がった私の技術スタック
akkeylab
0
130
iOSDCのペンライトを自動制御したい!
akkeylab
0
400
Building a Meta Ray-Ban display app
akkeylab
0
230
What If Your App Could Debug Itself?
akkeylab
0
110
How to stabilize UI tests using XCTest
akkeylab
0
240
Bringing Spatial Web to E-Commerce
akkeylab
0
120
Learn CPU architecture with Assembly
akkeylab
1
2.2k
Porting a visionOS App to Android XR
akkeylab
0
1.2k
How to handle 3D content on Android XR
akkeylab
0
280
Other Decks in Technology
See All in Technology
脆弱性診断って、何をしているの? 〜弱点を見つけて、会社の改善につなげるまで〜
keeg
0
920
Webの常識が通じないHTMLメールのダークモード
teamlab
PRO
0
120
Classmethod Company Deck
satoshi7
1
680
Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
1
580
ブラウザとサーバーから考えるAI時代のフロントエンド監視
shogo4131
3
940
AI導入は済んだ。次は統制を作り替える番だ_AI×開発組織 Summit 2026
techtekt
PRO
0
210
OptunaHub: ブラックボックス最適化のためのプラットフォーム
pfn
PRO
0
140
Active Record Connection Adaptersにおける長年の課題に再び取り組む
yahonda
0
150
Kiro Crewをはじめよう
kizawa2020
1
160
AI駆動で「他アプリの音を加工できる」アプリを作った
satomasahiro2005
0
150
⾮構造化データを価値に変える AI エージェント基盤とその組織
ivry_presentationmaterials
0
190
パスキーの自動テストはどこまでいけるのか
teamlab
PRO
0
200
Featured
See All Featured
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
59k
Crafting Experiences
bethany
1
380
Optimising Largest Contentful Paint
csswizardry
37
4k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
450
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
550
Raft: Consensus for Rubyists
vanstee
142
7.8k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
360
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
370
StorybookのUI Testing Handbookを読んだ
zakiyama
31
7k
エンジニアに許された特別な時間の終わり
watany
109
250k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
43k
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 !!