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
Live Activityホンノチョット理解した / understanding live a...
Search
kamimi
December 16, 2022
Programming
260
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Live Activityホンノチョット理解した / understanding live activity for beginners
会社の5分間LTで発表したLive Activityについてホンノチョットわかる内容です。
kamimi
December 16, 2022
More Decks by kamimi
See All by kamimi
基礎から理解する!来年春までに対応すべきプライバシーの変更点 / Understanding the Fundamentals Privacy Changes to Address by Next Spring
kamimi
4
10k
はじめよう!Swift OpenAPI Generatorによるスキーマ駆動開発:導入手順と活用のコツ
kamimi
0
360
Swift OpenAPI Generator に 入門する
kamimi
3
2.6k
ノーコードのiOS開発を運用しやすくするための開発フローとバージョン管理の工夫
kamimi
0
1.1k
(Deprecated)ノーコードのiOS開発を運用しやすくするための開発フローとバージョン管理の工夫
kamimi
0
150
エンタープライズiOSホンノチョット理解した
kamimi
0
1.7k
Docs for Developers の読書レポート
kamimi
0
90
Other Decks in Programming
See All in Programming
MIZARU@SPAJAM2026 第二回予選
1901drama
0
110
『寄り添うラジオ』をAIで作る 体験価値から逆算した、会話しないUXと品質設計
theoriatec2024
2
120
ハーネス設計入門 〜プロンプト、コンテキストの次〜
kinopeee
54
36k
信頼性の目標を誰も求めてない
shubox
0
490
PyO3 で既存 Python 評価器を Rust core 化する ー wasm-bindgen でブラウザにも配るための設計
kdash
1
430
Hello, Hiroshima Geospatial Data! — Exploring DoboX with Python
ra0kley
0
170
新卒PdEのリアル
ryu1013
1
410
Go 1.27からのGODEBUG / Go 1.27 リリースパーティ #go127party
mazrean
0
320
書籍「プロフェッショナルAI駆動開発」紹介スライド
juntaromatsumoto
0
990
What We Talk About When We Talk About XP
m_seki
2
360
Webエンジニアなのにブラウザの仕組みがわからないので、Pythonで自作してみた
tatsuki12
4
1.7k
まだ間に合う!今年の夏こそSchemeのマクロ展開器を完全理解!
omasanori
0
630
Featured
See All Featured
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Building Applications with DynamoDB
mza
96
7.2k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.7k
Utilizing Notion as your number one productivity tool
mfonobong
4
570
Side Projects
sachag
455
43k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
770
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
680
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
260
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
690
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.5k
Code Review Best Practice
trishagee
74
20k
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についてのツイート