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
iPhoneX時代のレイアウト
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
t.goda
September 15, 2017
Technology
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
iPhoneX時代のレイアウト
t.goda
September 15, 2017
Transcript
14 slides
iPhone X࣌ͷϨΠΞτ 20170915
iPhone XͷσβΠϯ ্Լ̐ՕॴͷؙΈΛଳͼͨσΟεϓϨΠ ্෦ηϯαʔ෦ͷΓ͖ܽ
طଘΞϓϦͷϨΠΞτͷӨڹ ͦͷ··Ͱͳ͍͔Ͳ͏͔ େͷ߹͕͋Δ?
ͷݪҼ SafeAreaΛߟྀ͍ͯ͠ͳ͍ ͱ͍͏ΑΓSafeAreaLayoutGuidesΛҙ͍ࣝͯ͠ͳ͍ͱ ʹͳΔ
SafeAreaLayoutGuidesͱɹ SafeAreaΛࣔ͢LayoutGuide(Xcode9͔Βొ) InterfacebuilderͰAutoLayoutͰ੍Λࢦఆ͢Δࡍʹར༻
AutoLayoutͱ ΞϓϦͷUIͳͲϨΠΞτΛ࡞͢Δࡍʹར༻͢Δػೳ ͜ΕΛར༻͢Δ͜ͱͰը໘αΠζ͕ҟͳΔʹରԠՄೳ ͍͍͔ͨͯΒ੍ΛͭΜͰ͍͘ iPhoneXͷͬͯͲͩ͜Α…… Ҏ֎͔ΒͭΉํ๏͋Δ(ը໘த৺Λجૅͱ͢ΔͳͲ)
ࠓ·ͰͷAutoLayout BottomLayoutGuideٴͼTopLayoutGuide͔Βͷ੍ SuperView(ͱͳΔView)͔Βͷ੍
BottomLayoutGuide, TopLayoutGuide φϏήʔγϣϯόʔλϒόʔͳͲΛߟྀͨ͠LayoutGuide ͔͜͜Β
SuperView φϏήʔγϣϯόʔͳͲΛߟྀ͠ͳ͍Ґஔ͔Βͷ੍ ͔͜͜Β
Ͳ͏ରԠ͢Δ͔ SafeAreaLayoutGuides΄΅Bottom, Topͱಉ͡ SafeAreaLayoutGuidesAreaͳͷͰ͙ΔͬͱҰप͍ͯ͠Δ ֓೦͕ҧ͏͕มՄೳ UseSafeAreaLayoutGuidesʹνΣοΫΛ͍ΕΔ SuperView͔Βͷ੍৻ॏʹ
৻ॏʹͳΔཧ༝ ΤοδδΣενϟʔͷՃ ϗʔϜϘλϯସͷڍಈΛΤοδδΣενϟʔͰߦ͏ ͜Ε
·ͱΊ ࠓޙAutoLayoutʹΑΔ੍Λ͚ͭΔࡍʹ SafeAreaLayoutGuidesΛར༻͢Δ TopLayoutGuide, BottomLayoutGuideͳΔ͘ SafeAreaLayoutGuidesʹ طʹDeprecatedʹࢦఆ͞Ε͍ͯΔ ಛʹBottomଆͷδΣενϟʔΤϦΞʹؾΛ͚ͭΔ͜ͱ
͓·͚ ԣ͖ʹͨ͠ࡍͷΤϦΞ
͓·͚̎ ͦͦΓ͖ܽअຐͳΜͰ͚͢Ͳ……σβΠϯతʹ͍ͩ͞͠…… εςʔλεόʔΛࠇ͘͠Α͏ʂ ग़య: https://twitter.com/carlosgavina/status/907687992764125185/photo/1?ref_src=twsrc%5Etfw&ref_url=http%3A%2F%2Fgigazine.net%2Fnews%2F20170915-iphone-x-notch-creative-solutions%2F
More Decks by t.goda
See All by t.goda
Distribute Binary Framework with Swift Package Manager
nivisunder7
0
150
XCTestでAPIのテストコードを書く
nivisunder7
0
420
App Clipについて
nivisunder7
1
89
Swift5.0 ABI安定化について
nivisunder7
0
400
SwiftUIの紹介
nivisunder7
0
47
Watch Kitのはまりどころ
nivisunder7
0
71
Docker in Docker Tips
nivisunder7
0
67
iOS11のここが素晴らしい
nivisunder7
0
94
SpriteKitでゲーム開発
nivisunder7
0
120
Other Decks in Technology
See All in Technology
セキュリティチームは どのコンテナイメージの脆弱性対応を優先すべきか 〜CISA新指針とSCCで作る脆弱性トリアージ〜
swdtkuy
0
330
ポケモンバトルのAIエージェント
koji_kawamura
0
230
Dark Web - Como o Cibercrime Opera na Internet
nicholsjasper
0
110
IP重複は"ランディングVPC"で受け止める ― PrivateLink と Transit Gatewayによるマルチテナント接続基盤の設計
hatahata021
3
270
Go でトランザクション、どう書いてますか?
knwoop
1
600
プラガブルで宣言的なソフトウェアファクトリーを支えるTypeScript
timakin
2
680
ブース設計、 お前もプロダクトだったのか / So Booth Design Was a Product All Along
akihiro0038
0
150
AI-Ready なデータ基盤ってなに? & 新卒未経験が、いま考えていること
imuta
0
1.1k
コーディングできない僕にBobが舞い降りた
shumpei3
0
200
20261119_AgentCore
takuyay0ne
2
280
NutanixへのSSHアクセスの今後について
shadowhat
0
170
[NW-JAWS DAY]「うちのAWS、インターネット出られないんで」― AWS外の自社サービスをPrivateLinkでシュッと公開する方法
ykimi
3
920
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
96
14k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
970
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
73
43k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
KATA
mclloyd
PRO
35
16k
Music & Morning Musume
bryan
48
7.5k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
A better future with KSS
kneath
240
18k
Designing for Timeless Needs
cassininazir
1
570
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
390
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k