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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
kamimi
December 16, 2022
Programming
250
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
9.9k
はじめよう!Swift OpenAPI Generatorによるスキーマ駆動開発:導入手順と活用のコツ
kamimi
0
350
Swift OpenAPI Generator に 入門する
kamimi
3
2.5k
ノーコードのiOS開発を運用しやすくするための開発フローとバージョン管理の工夫
kamimi
0
1.1k
(Deprecated)ノーコードのiOS開発を運用しやすくするための開発フローとバージョン管理の工夫
kamimi
0
150
エンタープライズiOSホンノチョット理解した
kamimi
0
1.7k
Docs for Developers の読書レポート
kamimi
0
89
Other Decks in Programming
See All in Programming
PostgreSQL 18で考えるUUID主キー
kazuhiro1982
0
440
仕様書を書く前にハーネスを作る - Agent Native開発は「探索を速く、判定を固く」
gotalab555
3
1.3k
Built Our Own Background Agent at LayerX #aidevex_findy
layerx
PRO
9
3.8k
Foundation Models frameworkで画像分析
ryodeveloper
1
190
yield再入門 #phpcon
o0h
PRO
0
840
JAWS-UG横浜 #102 AWSサ終供養LT会 成仏できない AWS サービスたち 〜本日、三体供養します〜
maroon1st
0
280
광주소프트웨어마이스터고등학교 DevFest 특강 - 바이브 코딩 시대에서 주니어 개발자로 살아남는 방법
utilforever
1
160
人間の目はかわらない、だからJPEGは30年もつ
yuzneri
12
17k
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
500
Google Apps Script で Ruby を動かす
kawahara
0
120
Build-to-own AI: Agentic Development for Humans
inesmontani
PRO
0
130
『コードを書く以外の』エンジニアリング〜課金基盤移行プロジェクト推進のためのTips4選
yuriko1211
0
560
Featured
See All Featured
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
680
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.4k
Balancing Empowerment & Direction
lara
6
1.2k
Design in an AI World
tapps
1
270
Claude Code のすすめ
schroneko
67
230k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.5k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
560
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
We Have a Design System, Now What?
morganepeng
55
8.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についてのツイート