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
速習!iOS 17 Widgets 対応!
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Mika Ito
September 26, 2023
520
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
速習!iOS 17 Widgets 対応!
2023/09/26 potatotips #84
Mika Ito
September 26, 2023
Transcript
17 slides
速習!iOS 17 Widgets 対応! Mika Ito potatotips #84 2023/09/26
iOS 17 からの Widgets のアップデート 2 • Widgets の置ける場所が増えた! ◦
Mac のデスクトップ (macOS app を持ってなくても使⽤できる) ◦ iPad のロック画⾯ ◦ iPhone の StandBy モード ◦ Apple Watch の Smart Stack • インタラクティブ Widgets
iOS 17 からの Widgets のアップデート 3 • Widgets の置ける場所が増えた! ←
今回はこちらの話!💁 ◦ Mac のデスクトップ (macOS app を持ってなくても使⽤できる) ◦ iPad のロック画⾯ ◦ iPhone の StandBy モード ◦ Apple Watch の Smart Stack • インタラクティブ Widgets
iOS 17 の新機能枠でフィーチャー 🎉 4 ⽇経電⼦版が App Store でフィーチャーされました! •
StandBy 対応 • watchOS 10 対応 • (既存 Widgets の改善)
新しい場所への展開⽅法 5 • 必須の対応 1. content margins への移⾏ 2. removable
background の適⽤ • より最適化するには 1. レイアウトを動的に適応させる 2. vibrant rendering への準備
必須の対応 ① ~ content margins への移⾏~ 6 • ⾃動で余⽩が付くようになった •
今までは⼿動で padding をつける必要があったが、これが不要になっ た https://developer.apple.com/videos/play/wwdc2023/10027/
必須の対応 ① ~ content margins への移⾏~ 7 Xcode 14 Xcode
15 ⽇経電⼦版の場合 だと...
必須の対応 ① ~ content margins への移⾏~ 8 Xcode 14 Xcode
15 .containerBackground() を追加する!
必須の対応 ② ~ removable background の考慮 ~ 9 .containerBackground() は
.background() とは違うの? • 置く場所によって背景を消してくれたり表⽰してくれたりする • 背景なしの例:StandBy, iPad のロック画⾯, watch の complication 背景あり 背景なし
より最適化するには ① ~レイアウトを動的に適応させる~ 10 StandBy 対応 ( & iPad のロック画⾯)
StandBy とは? • iPhone を充電した状態で横にすると出現する • キッチンやベッドルーム、デスクに置く想定 • 遠くから⾒た時にも読みやすいデザイン • 黒い背景にシームレスにブレンドされるように 背景⾊を使わない。 → StandBy の時はレイアウトを変えたい! https://developer.apple.com/jp/design/human-interface-guidelines/widgets
より最適化するには ① ~レイアウトを動的に適応させる~ 11 StandBy 対応 ( & iPad のロック画⾯)
showWidgetBackgorund == true showWidgetBackgorund == false
より最適化するには ② ~ vibrant rendering への準備~ 12 • Widgets の外観は、表⽰されるコンテキストに応じて変わる
◦ どのような外観でも、特徴的で映えるデザインにするべき ◦ 特に注意しなければいけないのは、バイブラントな外観 https://developer.apple.com/jp/design/human-interface-guidelines/widgets フルカラー バイブラント
より最適化するには ② ~ vibrant rendering への準備~ 13 バイブラントレンダリングモード時は • 画像、数字、テキストなどのコンテンツは不透明度100%にする
◦ でないと、背景に溶け込みすぎてしまう • ⽬⽴たせるコンテンツに⽩または明るいグレイを、副次的な要素には 暗いグレイスケール値を使⽤する
より最適化するには ② ~ vibrant rendering への準備~ 14 バイブラントレンダリングモードの時にはデザインを変えてしまいたい! renderingMode ==
.fullColor renderingMode == .vibrant
より最適化するには ~⽇経電⼦版 の StandBy 対応 ( & iPad のロック画⾯) ~
15 • ⽂字を⼤きく • 背景画像は使⽤しない (Night mode の時に⾚くなるので不適切と判断) • ⽬⽴たせたいアプリ名と⾒出しは⽩⽂字 既存 small widget StandBy (通常時) StandBy (Night mode) iPad ロック画⾯ バイブラント
まとめ 16 • content margins, removable background への対応は必須!! • よりこだわりたい⼈は...
◦ StandBy ⽤、watch の Smart Stack ⽤にデザインを⽤意したり ◦ vibrant rendering のときもコンテンツが鮮明に⾒えるようにデザ インを考慮したり • Apple は Widgets を推している!? iOS 17 の Widgets の Update に対応していきましょう!💪
Thank you for your attention! 17 企業 Widgets も使ってください!😉 https://www.nikkei.com/article/DGXZQOFM253FD0V20C23A8000000/
More Decks by Mika Ito
See All by Mika Ito
Wi-Fi Aware を紐解く ~ Apple の公開 API と標準規格から理解する近距離 P2P 通信 ~
mika1315
0
180
iOS 18 新機能対応
mika1315
0
480
Accessibility for Swift Charts
mika1315
0
730
Featured
See All Featured
Crafting Experiences
bethany
1
450
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.2k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.5k
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
What's in a price? How to price your products and services
michaelherold
247
13k
Raft: Consensus for Rubyists
vanstee
143
7.9k
BBQ
matthewcrist
90
10k
ラッコキーワード サービス紹介資料
rakko
5
6M
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
48k
Music & Morning Musume
bryan
48
7.5k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k