Slide 1

Slide 1 text

UIKitͷΞοϓσʔτ 
 #WWDC22 YUMEMI.swift #15 ʙWWDC෮शձʙ @akatsuki174

Slide 2

Slide 2 text

ࣗݾ঺հ

Slide 3

Slide 3 text

• @akatsuki174 • גࣜձࣾTimersॴଐ • ڈ೥ग़࢈ɺࠓ೥ϑϧλΠϜ෮ؼ • iOS→Android→Flutter • iOSDC Japan 2022ίΞελοϑ

Slide 4

Slide 4 text

֓ཁ

Slide 5

Slide 5 text

֓ཁ • WWDC22ͷʮWhat’s new in UIKitʯʢʴެࣜɹɹ υΩϡϝϯτʣͷμΠδΣετ • Zennͷํʹ΋ॻ͍ͯ·͢ →ʮUIKitͷΞοϓσʔτ #WWDC22ʯɹɹɹɹɹɹ https://zenn.dev/akatsuki174/articles/ 972e03f68c4b9e ※͢΂ͯެ։৘ใΛ΋ͱʹॻ͍ͯ·͢ɻεΫγϣ͸্هಈըͷ΋ͷͰ͢ɻ

Slide 6

Slide 6 text

ࠓ೔࿩߲͢໨ • φϏήʔγϣϯόʔ • ݕࡧͱஔ׵ • ฤूϝχϡʔ • αΠυόʔ • ΧϨϯμʔ • ϖʔδίϯτϩʔϧ • ϖʔετ • γʔτ • SF Symbols • UIScreen • ηϧͷηϧϑϦαΠδϯά • UIKit x SwiftUI • UIDevice

Slide 7

Slide 7 text

φϏήʔγϣϯόʔ

Slide 8

Slide 8 text

/FX /FX ৽͍͠φϏήʔγϣϯελΠϧ

Slide 9

Slide 9 text

ཤྺ΍ϑΥϧμߏ੒ʹͳ͍ͬͯΔ΋ͷ༻ ʢ=>WebɺυΩϡϝϯτϒϥ΢βʣ

Slide 10

Slide 10 text

υΩϡϝϯτͷฤूΛ͢ΔΞϓϦ༻

Slide 11

Slide 11 text

ϘλϯͷҐஔ

Slide 12

Slide 12 text

λΠτϧϝχϡʔ

Slide 13

Slide 13 text

ݕࡧͱஔ׵

Slide 14

Slide 14 text

UITextViewɺ WKWebViewɺ PDFView͸ ϑϥάΛtrueʹ ͢Δ͚ͩ

Slide 15

Slide 15 text

ฤूϝχϡʔ

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

αΠυόʔ

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

ΧϨϯμʔ

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

Ͱ͖Δ͜ͱ • ୯Ұɺ΋͘͠͸ෳ਺ͷ೔෇Λબ୒ • બ୒Մೳͳ೔෇ൣғͷ੍ݶ • ಛఆͷ೔෇Λબ୒͔Βআ֎ • ಛఆͷ೔෇ʹ૷০

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

UIDatePickerͱͷҧ͍ • ೔෇ΛNSDateComponentsͰදݱ͍ͯ͠Δ ʢUIDatePicker͸NSDateʣ • ૷০͕Ͱ͖Δ

Slide 25

Slide 25 text

ϖʔδίϯτϩʔϧ

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

ϖʔετ

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

γʔτ

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

SF Symbols

Slide 33

Slide 33 text

EFGBVMU

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

UIScreen

Slide 36

Slide 36 text

deprecated API • UIScreen.main͕deprecatedʹ • UITraitCollectionɺUISceneͳͲΛ୅ΘΓʹ࢖͏

Slide 37

Slide 37 text

ηϧͷηϧϑϦαΠδϯά

Slide 38

Slide 38 text

ࣗಈͰϦαΠζ • ίϯςϯπ͕ߋ৽͞ΕͨΒࣗಈͰϦαΠζ • UIListContentCon fi gurationΛ࢖͍ͬͯΔ৔߹͸ selfSizingInvalidationͰσϑΥϧτͰ༗ޮ • ͦΕҎ֎Ͱ΋invalidateIntrinsicContentSizeͰՄ • Auto LayoutΛ࢖༻͍ͯ͠ΔͳΒ enabledIncludingConstraintsΛ࢖͏

Slide 39

Slide 39 text

UIKit x SwiftUI

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

UIDevice

Slide 42

Slide 42 text

APIͷมߋ/ඇαϙʔτ • UIDevice.name͸Ϣʔβ͕ઃఆͨ͠σόΠε໊ɹɹ Ͱ͸ͳ͘Ϟσϧ໊Λฦ͢Α͏ʹͳͬͨ • UIDevice.orientation͸ඇαϙʔτʹɻ୅ΘΓʹ preferredInterfaceOrientationForPresentationͳͲ Λ࢖༻͢Δ

Slide 43

Slide 43 text

͓ΘΓʹ

Slide 44

Slide 44 text

·ͱΊ • UIKit΋·ͩ·ͩਐԽ͍ͯ͠Δ • deprecatedɺڍಈมߋͷAPIʹ஫ҙ

Slide 45

Slide 45 text

WWDC21ͷUIKitهࣄॻ͍ͨΑ WEB+DB PRESS Vol.126ʹiOS 15ʹ͓͚ΔUIKitͷ Ξοϓσʔτهࣄॻ͖·ͨ͠ɻ iOS 15ͷΩϟονΞοϓ͍ͨ͠ํ͸ͥͻʂ

Slide 46

Slide 46 text

Flutter੡ΞϓϦ࡞ͬͯ·͢ Timersͷ৽نΞϓϦ͸Futter੡ʂ ͥͻμ΢ϯϩʔυˍ஫จͯ͠Έ͍ͯͩ͘͞ɻ ঺հίʔυ → hi37L ΤϯδχΞ ืू΋ ͯ͠ΔΑʂ