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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
akatsuki174
July 01, 2020
Programming
1.7k
4
Share
iOS 14のピッカーあれこれ
CA.swift #12 WWDC20報告会
NDAの関係で中身がすかすかのスライド
akatsuki174
July 01, 2020
More Decks by akatsuki174
See All by akatsuki174
逆向きUIの世界 〜iOSアプリのRTL言語対応〜
akatsuki174
1
590
逆向きUIの世界〜AndroidアプリのRTL言語対応〜
akatsuki174
1
1k
私が変えてきたこと、変えなかったこと
akatsuki174
2
1k
最近読んでいる本-読書シェア会vol.1
akatsuki174
2
270
SwiftUI、UIKitでキャプチャを撮ろう!
akatsuki174
1
140
Appleにおけるプライバシーの全容を把握する
akatsuki174
0
6.2k
近年のAppleにおける位置情報とプライバシー
akatsuki174
3
510
オフライン勉強会ぼっち対策
akatsuki174
1
710
Xcode 15の新機能
akatsuki174
0
2.9k
Other Decks in Programming
See All in Programming
セグメントとターゲットを意識するプロポーザルの書き方 〜採択の鍵は、誰に刺すかを見極めるマーケティング戦略にある〜
m3m0r7
PRO
0
740
AI時代のエンジニアリングの原則 / Engineering Principles in the AI Era
haru860
0
1.1k
Firefoxにコントリビューションして得られた学び
ken7253
2
150
Claude Code × Gemini × Ebitengine ゲーム制作素人WebエンジニアがGoでゲームを作った話
webzawa
0
210
ハーネスエンジニアリングにどう向き合うか 〜ルールファイルを超えて開発プロセスを設計する〜 / How to approach harness engineering
rkaga
27
19k
Symfony AI in Action - SymfonyLive Berlin 2026
chr_hertel
1
110
ハーネスエンジニアリングとは?
kinopeee
13
6.7k
いつか誰かが、と思っていた フロントエンド刷新5年間の実践知
kiichisugihara
1
250
Agentic Elixir
whatyouhide
0
440
UIの境界線をデザインする | React Tokyo #15 メイントーク
sasagar
2
420
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
340
Structured Concurrency, Scoped Values and Joiners in the JDK 25 26 27
josepaumard
1
140
Featured
See All Featured
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
180
A designer walks into a library…
pauljervisheath
211
24k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
110
The Invisible Side of Design
smashingmag
302
52k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
170
The Pragmatic Product Professional
lauravandoore
37
7.2k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
65
54k
Ruling the World: When Life Gets Gamed
codingconduct
0
220
Why Our Code Smells
bkeepers
PRO
340
58k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.2k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
120
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
͝ਗ਼ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ