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
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
380
Swift OpenAPI Generator に 入門する
kamimi
3
2.6k
ノーコードのiOS開発を運用しやすくするための開発フローとバージョン管理の工夫
kamimi
0
1.2k
(Deprecated)ノーコードのiOS開発を運用しやすくするための開発フローとバージョン管理の工夫
kamimi
0
160
エンタープライズiOSホンノチョット理解した
kamimi
0
1.8k
Docs for Developers の読書レポート
kamimi
0
92
Other Decks in Programming
See All in Programming
Crash Auto Pipelines
veronikapj
1
400
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
4
3.8k
Spec-driven Development with AI
simas
PRO
0
2.3k
LLM 101
dalinaum
0
470
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
540
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
3
1.5k
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
420
AI時代のTerminal環境を UNIX哲学で設計・運用する
yasunori0418
1
350
Snowflake Openflow Connector利用の勘所 / 20261024developersio2026tokyo-snowflake-openflow
kasacchiful
PRO
0
320
はじめてのPLATEAU
nokonoko1203
1
630
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
200
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
360
Featured
See All Featured
Leo the Paperboy
mayatellez
10
2.4k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
530
Thoughts on Productivity
jonyablonski
76
5.5k
Deep Space Network (abreviated)
tonyrice
0
410
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.8k
Code Review Best Practice
trishagee
74
20k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
470
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
300
Building Applications with DynamoDB
mza
96
7.3k
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についてのツイート