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
Pitfalls of PhotoKit
Search
griffin-stewie
December 22, 2015
Programming
0
240
Pitfalls of PhotoKit
関西モバイルアプリ研究会 #9 (kanmoba)
griffin-stewie
December 22, 2015
Tweet
Share
More Decks by griffin-stewie
See All by griffin-stewie
How I develop a Sketch Native Plugin
griffin_stewie
0
620
Boost your App Dev using Sketch
griffin_stewie
0
290
Take a peep at .app
griffin_stewie
0
410
Lightweight Markup Language to PDF
griffin_stewie
1
500
ドキュメント作成どうしてる?
griffin_stewie
0
540
Talk about "clg" color list generator.
griffin_stewie
1
410
Tips for Apple Watch.
griffin_stewie
0
770
JSON をそこそこ見やすくする CUI ツールを Objective-C で作ったときの話
griffin_stewie
1
560
Other Decks in Programming
See All in Programming
SRE チーム立ち上げ前に考えたこと・取り組んだこと / Considerations and Preparations Before Establishing an SRE Team
mackey0225
3
320
유연한 Composable 설계
l2hyunwoo
0
380
Exploring the Gradually Lost Technical Skills in the Cloud Native Era
hwchiu
2
3.9k
企業向け生成AIアプリの 開発から得られた知見
takaakikakei
0
310
[After Kotlin Fest 2024 LT Night @ Sansan] もっともっとKotlinを好きになる!K2 Compiler Pluginで遊んでみよう!
kitakkun
2
260
APIのない大学ログインWebサービスをWKWebViewとJavaScriptでアプリ化した話
akidon0000
1
330
日付と正規化
megmogmog1965
0
140
The rollercoaster of releasing an Android, iOS, and macOS app with Kotlin Multiplatform | droidcon Berlin
prof18
0
110
君たちはどうコードをレビューする (される) か / 大吉祥寺.pm
utgwkk
15
8.5k
さきがけから振り返るアーキテクチャ刷新 / Reflecting on the Architectural Renewal from the Vanguard
nrslib
2
780
しくじり先生 Image Matching Challenge 2024 編
goosehaaan
0
810
Play Billing Library 7.0.0 変更点まとめ@potatotips#88
kako351
0
160
Featured
See All Featured
For a Future-Friendly Web
brad_frost
173
9.2k
The Cost Of JavaScript in 2023
addyosmani
31
4.7k
We Have a Design System, Now What?
morganepeng
46
7k
Being A Developer After 40
akosma
72
580k
Practical Orchestrator
shlominoach
185
10k
Speed Design
sergeychernyshev
9
270
How to train your dragon (web standard)
notwaldorf
79
5.5k
Pencils Down: Stop Designing & Start Developing
hursman
118
11k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
360
22k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
29
2.5k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
105
6.8k
Side Projects
sachag
451
42k
Transcript
Pitfalls of PhotoKit @griffin_stewie
Fenrir Inc. @griffin_stewie Bouldering: Level 5
PhotoKit
PhotoKit • From iOS 8 • Sophisticated • Thread safe
Simple Fetching
Assets Library • Enumerate groups and assets • Filter inside
loop • Easy access raw data
PhotoKit • Call fetch methods • Like CoreData • Apply
fetch options
Complicated Fetching
PHFetchOptions • dates • pixelWidth • pixelHeight • etc
PhotoKit • Access raw data ?
Darkside
Too slow
Fetching 5000 assets • Assets Library • Takes a few
seconds • PhotoKit • Takes a few minutes
Reasons
XPC • Assets Library • Same process as app •
PhotoKit • Separate process • Communicate using XPC
Thread safe • Assets Library • Developers should take care
of it • PhotoKit • Framework cares
Let's use obediently