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
260
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
710
Boost your App Dev using Sketch
griffin_stewie
0
300
Take a peep at .app
griffin_stewie
0
440
Lightweight Markup Language to PDF
griffin_stewie
1
590
ドキュメント作成どうしてる?
griffin_stewie
0
600
Talk about "clg" color list generator.
griffin_stewie
1
450
Tips for Apple Watch.
griffin_stewie
0
810
JSON をそこそこ見やすくする CUI ツールを Objective-C で作ったときの話
griffin_stewie
1
570
Other Decks in Programming
See All in Programming
CursorとDevinが仲間!?AI駆動で新規プロダクト開発に挑んだ3ヶ月を振り返る / A Story of New Product Development with Cursor and Devin
rkaga
5
1.4k
Boast Code Party / RubyKaigi 2025 After Event
lemonade_37
0
120
generative-ai-use-cases(GenU)の推しポイント ~2025年4月版~
hideg
1
440
生成AI時代のフルスタック開発
kenn
8
1k
Flutterでllama.cppをつかってローカルLLMを試してみた
sakuraidayo
0
160
SwiftDataのカスタムデータストアを試してみた
1mash0
0
150
eBPF超入門「o11yに使える」とは (20250424_eBPF_o11y)
thousanda
1
120
ぽちぽち選択するだけでOSSを読めるVSCode拡張機能
ymbigo
14
6.6k
Live Coding: Migrating an Application to Signals
manfredsteyer
PRO
0
130
イベントソーシングとAIの親和性ー物語とLLMに理解できるデータ
tomohisa
0
130
ソフトウェア品質特性、意識してますか?AIの真の力を引き出す活用事例 / ai-and-software-quality
minodriven
16
4.8k
Vibe Coding の話をしよう
schroneko
14
3.9k
Featured
See All Featured
Gamification - CAS2011
davidbonilla
81
5.3k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
5
590
The Language of Interfaces
destraynor
158
25k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.3k
Designing Experiences People Love
moore
142
24k
Docker and Python
trallard
44
3.4k
Music & Morning Musume
bryan
47
6.5k
Visualization
eitanlees
146
16k
Facilitating Awesome Meetings
lara
54
6.4k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
14
1.5k
Being A Developer After 40
akosma
91
590k
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