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.5k
iOS 14のピッカーあれこれ
CA.swift #12 WWDC20報告会
NDAの関係で中身がすかすかのスライド
akatsuki174
July 01, 2020
Tweet
Share
More Decks by akatsuki174
See All by akatsuki174
Appleにおけるプライバシーの全容を把握する
akatsuki174
0
5.3k
近年のAppleにおける位置情報とプライバシー
akatsuki174
3
370
オフライン勉強会ぼっち対策
akatsuki174
1
540
Xcode 15の新機能
akatsuki174
0
2.5k
AndroidにもSelect Photosがやってきた
akatsuki174
0
1.1k
Famm Android改善記
akatsuki174
0
330
Flutterアプリ開発にネイティブコードはどこまで求められるのか
akatsuki174
2
4.2k
UIKitのアップデート #WWDC22
akatsuki174
4
1.2k
職能/職種横断でチームの生産性を高める
akatsuki174
2
5.7k
Other Decks in Programming
See All in Programming
Prompt Cachingは本当に効果的なのか検証してみた.pdf
ttnyt8701
0
530
Some more adventure of Happy Eyeballs
coe401_
2
180
いつか使える ObjectSpace / Maybe useful ObjectSpace
euglena1215
2
130
[DroidKaigi 2024] Android ViewからJetpack Composeへ 〜Jetpack Compose移行のすゝめ〜 / From Android View to Jetpack Compose: A Guide to Migration
syarihu
1
280
LangGraphでのHuman-in-the-Loopの実装
os1ma
3
1k
実践 Advanced CallKit 〜快適な通話の実現に向けて〜
mot_techtalk
3
130
Go1.23で入った errorsパッケージの小さなアプデ
kuro_kurorrr
2
350
今インフラ技術をイチから学び直すなら
yuhta28
1
130
Kotlin 2.0 and Beyond
antonarhipov
2
150
Scala におけるコンパイラエラーとの付き合い方
chencmd
2
410
Debugging: All you need to know (for simultaneous interpreting)
jmatsu
2
610
Amazon Neptuneで始める初めてのグラフDB ー グラフDBを使う意味を考える ー
satoshi256kbyte
2
250
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
64
11k
Making Projects Easy
brettharned
113
5.8k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
24
600
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
8.9k
Intergalactic Javascript Robots from Outer Space
tanoku
268
26k
Building Better People: How to give real-time feedback that sticks.
wjessup
359
18k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
230
17k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.4k
Six Lessons from altMBA
skipperchong
26
3.3k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.2k
10 Git Anti Patterns You Should be Aware of
lemiorhan
653
58k
Building Your Own Lightsaber
phodgson
101
6k
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
͝ਗ਼ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ