$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Live Activityホンノチョット理解した / understanding live a...
Search
kamimi
December 16, 2022
Programming
0
210
Live Activityホンノチョット理解した / understanding live activity for beginners
会社の5分間LTで発表したLive Activityについてホンノチョットわかる内容です。
kamimi
December 16, 2022
Tweet
Share
More Decks by kamimi
See All by kamimi
基礎から理解する!来年春までに対応すべきプライバシーの変更点 / Understanding the Fundamentals Privacy Changes to Address by Next Spring
kamimi
4
9.4k
はじめよう!Swift OpenAPI Generatorによるスキーマ駆動開発:導入手順と活用のコツ
kamimi
0
300
Swift OpenAPI Generator に 入門する
kamimi
3
2.3k
ノーコードのiOS開発を運用しやすくするための開発フローとバージョン管理の工夫
kamimi
0
870
(Deprecated)ノーコードのiOS開発を運用しやすくするための開発フローとバージョン管理の工夫
kamimi
0
140
エンタープライズiOSホンノチョット理解した
kamimi
0
1.5k
Docs for Developers の読書レポート
kamimi
0
68
Other Decks in Programming
See All in Programming
MAP, Jigsaw, Code Golf 振り返り会 by 関東Kaggler会|Jigsaw 15th Solution
hasibirok0
0
210
AIコーディングエージェント(skywork)
kondai24
0
120
20 years of Symfony, what's next?
fabpot
2
310
非同期処理の迷宮を抜ける: 初学者がつまづく構造的な原因
pd1xx
1
590
20251127_ぼっちのための懇親会対策会議
kokamoto01_metaps
2
410
CSC305 Lecture 17
javiergs
PRO
0
270
TVerのWeb内製化 - 開発スピードと品質を両立させるまでの道のり
techtver
PRO
3
1.4k
スタートアップを支える技術戦略と組織づくり
pospome
8
15k
バックエンドエンジニアによる Amebaブログ K8s 基盤への CronJobの導入・運用経験
sunabig
0
140
WebRTC と Rust と8K 60fps
tnoho
2
1.9k
エディターってAIで操作できるんだぜ
kis9a
0
650
Level up your Gemini CLI - D&D Style!
palladius
1
170
Featured
See All Featured
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.3k
Scaling GitHub
holman
464
140k
Agile that works and the tools we love
rasmusluckow
331
21k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
Practical Orchestrator
shlominoach
190
11k
Balancing Empowerment & Direction
lara
5
780
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
BBQ
matthewcrist
89
9.9k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
380
Reflections from 52 weeks, 52 projects
jeffersonlam
355
21k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Raft: Consensus for Rubyists
vanstee
140
7.2k
Transcript
Live Activity 理解した 🚀 kamimi ホンノ チョット
Live Activityとは • WWDC22で発表された 新機能✨
Live Activityとは • アプリの最新データを表示する機能 • iPhoneのロック画面とDynamic Islandに表示される
例えば • ☔ アメミル:天候情報を30分後まで表示する • ✈ Flighty:今後の飛行機や進行中の飛行機をチェックする • Posture
Pal:ヘッドホンのモーションセンサーから姿勢をチェックする
ちなみにPosture Palおもしろい 👀
Live Activityとは • iOS 16.1以上 • Dynamic Islandは、iPhone 14 ProまたはiPhone
14 Pro Maxのみ 🥲
Live Activityの表示箇所とパターン • iPhoneのロック画面とDynamic Islandで表示される • Dynamic Islandには3種類の表示パターンがある(HIGもある) ロック画面 Dynamic
Island compact(通常時) minimal(他のLive Activityがあるとき) expanded(長押ししたとき)
Live Activityの実装 - データ - • 静的データ • 動的データ ◦
更新方法は2つ ▪ アプリ本体から ▪ プッシュ通知で
• 実装が必要な画面 ◦ ロック画面 ◦ Dynamic Island ▪ compact ▪
minimal ▪ expanded Live Activityの実装 - View - compact minimal expanded
Live Activityの実装 - View - • SwiftUIで実装 ◦ Widgetと同じ
Live Activityの制約 • ✅ 最大8時間アクティブになる(※アプリやユーザーが終了しない限り) • 🖼 画像アセットの解像度が、デバイスの表示サイズより小さいか等しいこと • 🌐
ネットワークにアクセス ❌ ◦ リモートにある画像を表示しようとするとApp Groupsで実現するなど工夫が必要 • 📍 位置情報の更新を受信 ❌ • 📦 動的データは4KB以内
作ってみた!🚀
参考資料 • Displaying live data with Live Activities - Apple
Developer • Here Are All the Apps That Have Added Live Activities and Dynamic Island Support for iOS 16.1 • 【iOS16.1】新機能「ライブアクティビティ」対応アプリ7選・使い方を徹底解説! • Posture Pal demo • Jordi BruinさんのPosture PalのLive Activityについてのツイート