オリジナルのタイトル名:
Minimum layout margins が 8pt から 8.5pt にたぶん増量です💛
詳しく調べていないですが、たぶん watchOS 7 からの変更(もし間違っていたら情報お願いします)。
watchOS 5 の時代から、プログラムベースでの systemMinimumLayoutMargins
はまさかの 8.5pt でした。念の為(SDK バージョンを下げたことによる互換モードではなく)シミュレーターの OS を watchOS 7 にして試してみましたがこの値を返しました。
他の端末は同じ
Here's some screenshots showing the safe area insets for the series 4-6 40/44mm and series 7 41/45mm Watches. The status bar is the same height as the bottom safe area inset. Adaptivity doesn't use SwiftUI, but I measured them using the new .scenePadding() modifier in a test app. pic.twitter.com/3FwtlNY6fV
— Geoff Hackworth (@geoffhackworth) 2021年9月16日
公式ガイドラインでは、
- 40mm: 8pt Minimum layout margins
- 44mm: 9.5pt Minimum layout margins
と書いてある。
互換モード
watchOS 4 SDK でビルドされたアプリは、40mm / 44mm ケースでは 38mm / 42mm の互換表示となる。
watchOS 7 SDK でビルドされたアプリは、41mm / 45mm ケースでは 40mm / 44mm の互換表示となる。
The 41/45mm Series 7 Watch will show letterboxed and pillar boxed versions of the 40/44mm Series 4-6 apps when built with Xcode 12. Building with Xcode 13 opts the app in to the new screen sizes. pic.twitter.com/jwg2aSr94B
— Geoff Hackworth (@geoffhackworth) 2021年9月15日
まとめると
Content Area は完全に表示が可能な範囲(スクロールなしで見切れることがない範囲)。
ケースサイズ | 描画解像度 | 物理解像度 | 表示領域 | Content Safe Area | Minimum layout margins | Status bar height |
---|---|---|---|---|---|---|
38mm 40mm (互換) |
136x170 @ 2x | 272x340 | 563 mm2 | 134x151 | 1 | 19 |
40mm 41mm (互換) |
162x197 @ 2x | 324x394 | 759 mm2 | 145x160 | 8.5 | 28 |
41mm | 176x215 @ 2x | 352x430 | 904 mm2 | ? (154x147) | 11 | 34 |
42mm 44mm (互換) |
156x195 @ 2x | 312x390 | 740 mm2 | 154x174 | 1 | 21 |
44mm 45mm (互換) |
184x224 @ 2x | 368x448 | 977 mm2 | 165x182 | 9.5 | 31 |
45mm | 198x242 @ 2x | 396x484 | 1,143 mm2 | ? (174x172) | 12 | 35 |
10/29 追記
各端末の、Continuous な角丸を調べた。デバイスの外側の筐体は固定で、配置する位置によって変わる感じな気がする。目測なので、Apple が公式で発表しているとかあれば教えていただけると嬉しいかも。