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
iOS 14のピッカーあれこれ
Search
akatsuki174
July 01, 2020
Programming
4
1.4k
iOS 14のピッカーあれこれ
CA.swift #12 WWDC20報告会
NDAの関係で中身がすかすかのスライド
akatsuki174
July 01, 2020
Tweet
Share
More Decks by akatsuki174
See All by akatsuki174
Appleにおけるプライバシーの全容を把握する
akatsuki174
0
4.7k
近年のAppleにおける位置情報とプライバシー
akatsuki174
3
310
オフライン勉強会ぼっち対策
akatsuki174
1
460
Xcode 15の新機能
akatsuki174
0
2.1k
AndroidにもSelect Photosがやってきた
akatsuki174
0
730
Famm Android改善記
akatsuki174
0
310
Flutterアプリ開発にネイティブコードはどこまで求められるのか
akatsuki174
2
3.5k
UIKitのアップデート #WWDC22
akatsuki174
4
1k
職能/職種横断でチームの生産性を高める
akatsuki174
2
5.6k
Other Decks in Programming
See All in Programming
Ruby製社内ツールのGo移行
bgpat
2
270
MySQL のインデックスの種類をおさらいしよう! / overviewing indexes in MySQL
okashoi
0
180
実践!RDRAを活用した既存システムの仕様変更 / Specification Changes in Existing Systems Utilizing RDRA
imamotohikaru
0
2.8k
WebComponentsで フレームワークを1ページに共存させる
webuilder240
0
150
複雑なドメインを扱うプロダクトの探索フェーズではいつどのようにテストをするのか / How to testing during exploratory phase
boykush
2
150
「コンパイル時のユニットテスト」導入するとユニットテストを 書かなくてよくなるのか?
tomohisa
9
2.2k
[スクリプト] Swiftの型推論を学ぼう
omochi
0
120
CircleCIを活用して AWSへの継続的デリバリーを 実践する
coconala_engineer
1
110
チームでモデリングを育てるうえで 考えたこと・気づいたこと / Cultivating Modeling in Teams: Thoughts and Insights
mackey0225
5
2.5k
Why 1 + 1 = 2 in Swift?
1plus4
1
250
OpenTelemetry のサービスという概念について
azukiazusa1
1
410
TCAの Shared Stateって どういう仕組みになってんの?
yimajo
0
330
Featured
See All Featured
The Invisible Side of Design
smashingmag
293
49k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
101
6.6k
Fashionably flexible responsive web design (full day workshop)
malarkey
397
65k
The Pragmatic Product Professional
lauravandoore
24
5.7k
The Illustrated Children's Guide to Kubernetes
chrisshort
28
46k
How to train your dragon (web standard)
notwaldorf
71
5.1k
Docker and Python
trallard
33
2.6k
10 Git Anti Patterns You Should be Aware of
lemiorhan
644
57k
Infographics Made Easy
chrislema
237
18k
Intergalactic Javascript Robots from Outer Space
tanoku
266
26k
Keith and Marios Guide to Fast Websites
keithpitt
407
22k
Designing for humans not robots
tammielis
247
25k
Transcript
iOS 14ͷϐοΧʔ͋Ε͜Ε CA.swift #12 WWDC20ใࠂձ @akatsuki174
ࣗݾհ
• ਢ౻ຘʢ@akatsuki174ʣ • iOS→AndroidΤϯδχΞ • גࣜձࣾTimersॴଐ • Ұ൪Θ͘Θͨ͘͠ػೳɿWidget
ΞΠεϒϨΠΫ 5
ࠓͷ
࣍ • [New] ColorPicker • [Update] DatePicker
͜ͷࢿྉͷݩʹͳͬͨಈը • Design with iOS pickers, menus and actions •
https://developer.apple.com/videos/play/ wwdc2020/10205
ࠓͷࢿྉ
ࠓͷࢿྉ • NDAతʹΊͳͱ͜ΖΛൈ͔ͯ͠Ξοϓࡁ • TwitterͰྲྀͯ͠·͢ • ΘΓͱ͚ܽͯ͠·ͬͨ… • ϑϧver΄͍͠ਓ͍ͨΒ࿈བྷ͍ͩ͘͞
ColorPicker
ColorPickerͱ • ͦͷ໊ͷ௨Γ৭ΛબΔϐοΧʔ • άϦουɺεϖΫτϧɺεϥΠμʔͳͲΛɹ ͬͯ৭ΛબͰ͖Δ
None
ColorPickerͷ͍͢͝ͱ͜Ζ̍ • ৭อଘͯ͠ผΞϓϦͰ͏͜ͱ͕Ͱ͖Δ
</%"> ৭Λอଘͯ͠Δ༷ࢠΛөͨ͠ಈը
ColorPickerͷ͍͢͝ͱ͜Ζ̎ • εϙΠτπʔϧΛͬͯ৭ΛऔಘͰ͖Δ
</%"> εϙΠτπʔϧΛͬͯΔ༷ࢠΛөͨ͠ಈը
࣮ࡍʹݟͯΈΑ͏ Ϙλϯλοϓ →ColorPickerදࣔ →৭બ →ࢦఆͨ͠ViewͷbackgroundColorΛมߋ
</%"> ΧϥʔϐοΧʔΛಈ͔͍ͯ͠Δ༷ࢠ
</%"ʁ> ࣗͰ࡞ͬͨσϞΞϓϦͷ࣮ίʔυ
selectedColor • બதͷ৭Λද͢ • getter, setter͕͋Δ • setterϐοΧʔىಈ࣌ʹࢦఆ͢ΔͳͲͷ༻్ʁ
supportsAlpha • AlphaεϥΠμʔΛ༻ҙ͢Δ͔Ͳ͏͔
TVQQPSUT"MQIBGBMTF TVQQPSUT"MQIBUSVF </%"ʁ> "MQIBεϥΠμʔͷ༗ແ͕Θ͔ΔεΫγϣ
colorPickerViewController DidSelectColor • ϐοΧʔ্Ͱ৭Λબͨ͠ͱ͖ʹݺΕΔ
colorPickerViewController DidFinish • ϐοΧʔΛดͨ࣌͡ʢӈ্ͷXΛλοϓͨ࣌͠ʣ ʹݺΕΔ
DatePicker
Կ͕৽͘͠ͳͬͨͷ͔ • ίϯύΫτϞʔυɺΠϯϥΠϯϞʔυͰදࣔɹ Ͱ͖ΔΑ͏ʹͳͬͨ • ਖ਼֬ʹɺ.compactiOS 13.4Ҏ߱ • ࣌ؒΩʔϘʔυͰೖྗՄೳ
શछྨ
.compactදࣔ • UIButtonͷΑ͏ͳදࣔΛλοϓͯ͠ɹ ϐοΧʔΛىಈ • ࣌ࠁɺΛϞʔμϧͰબͰ͖Δ • UIͷεϖʔε͕ݶΒΕ͍ͯΔͱ͖ʹศར
</%"> DPNQBDUදࣔ͞ΕͨQJDLFSΛ ಈ͔͍ͯ͠Δ༷ࢠΛөͨ͠ಈը
.inlineදࣔ • ϐοΧʔ͕ͦͷ··ຒΊࠐ·Ε͍ͯΔ • ϞʔμϧΛग़͢ख͕ؒল͚Δ • iPadͳͲεϖʔε͕͍߹ʹ༗ޮ
</%"> JOMJOFදࣔ͞ΕͨQJDLFSͷεΫγϣ
Կ͔ରԠඞཁʁ • UIDatePickerͷAPI·ͬͨ͘ಉ͡·· • iOS 13 SDKͰϏϧυͯ͠ΔݶΓେৎͦ͏ • iOS 14
SDKͰϏϧυͨ͠Β preferredDatePickerStyleʹ.automatic͕ઃఆ ͞Εͯಈ͖͕มΘΔ…ʁ
J04BVUPNBUJD J04BVUPNBUJD </%"> BVUPNBUJDͷ༷ࢠͷҧ͍
ࠓ·Ͱ௨Γʹ͍ͨ͠ͳΒ • preferredDatePickerStyleΛ.wheelsʹ͢Ε ྑͦ͞͏
࣮ࡍʹݟͯΈΑ͏ compact date pickerΛλοϓ →બʢdate, time, dateAndTimeʣ →ܾఆ
</%"> ֤λΠϓͷEBUFQJDLFSΛಈ͔͍ͯ͠Δ༷ࢠΛ өͨ͠ಈը
</%"> 4UPSZCPBSEͷ༷ࢠ
·ͱΊ
·ͱΊ • ColorPicker༷ʑͳ؍͔Β৭ΛબͰ͖Δ • ৽͍͠DatePickerΑΓࣗવͳUIʢओ؍ʣͰɹ ΛબͰ͖Δ
ຊޠࢿྉ
ݟͯͶ • iOS 14ͰมΘΔϐοΧʔͱɺ৽͘͠ొͨ͠ɹ ΧϥʔϐοΧʔ • https://qiita.com/akatsuki174/items/ 56fc648f513d3e92387f 5
એ
iOSDCνέοτൃചதʂʂ • ࠓΦϯϥΠϯ։࠵ • ࠓͳΒΞʔϦʔόʔυ2,000ԁʢ͍҆ʂʣ • ϊϕϧςΟ༣ૹ • ύϯϑϨοτʹԠื͕͋ͬͨݪߘΛܝࡌ •
9/19() ʙ 9/21(݄ॕ)ɺͥͻ͝ࢀՃΛʂ 5
• αʔόʔαΠυΤϯδχΞ (PHP, Golang, AWS) • AndroidΤϯδχΞ (Kotlin) • iOSΤϯδχΞ
(Swift) TimersͰݱࡏΤϯδχΞશ৬छ࠾༻தʂ ৄ͘͠”Timers”Ͱݕࡧ 5
͝ਗ਼ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ