Upgrade to Pro — share decks privately, control downloads, hide ads and more …

UIKitのアップデート 
#WWDC22

UIKitのアップデート 
#WWDC22

UIKitのアップデート 
#WWDC22
2022/06/27 YUMEMI.swift #15 〜WWDC復習会〜

9d1961575e45a8286cdde5f86dbba312?s=128

akatsuki174

June 27, 2022
Tweet

More Decks by akatsuki174

Other Decks in Technology

Transcript

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

  2. ࣗݾ঺հ

  3. • @akatsuki174 • גࣜձࣾTimersॴଐ • ڈ೥ग़࢈ɺࠓ೥ϑϧλΠϜ෮ؼ • iOS→Android→Flutter • iOSDC

    Japan 2022ίΞελοϑ
  4. ֓ཁ

  5. ֓ཁ • WWDC22ͷʮWhat’s new in UIKitʯʢʴެࣜɹɹ υΩϡϝϯτʣͷμΠδΣετ • Zennͷํʹ΋ॻ͍ͯ·͢ →ʮUIKitͷΞοϓσʔτ

    #WWDC22ʯɹɹɹɹɹɹ https://zenn.dev/akatsuki174/articles/ 972e03f68c4b9e ※͢΂ͯެ։৘ใΛ΋ͱʹॻ͍ͯ·͢ɻεΫγϣ͸্هಈըͷ΋ͷͰ͢ɻ
  6. ࠓ೔࿩߲͢໨ • φϏήʔγϣϯόʔ • ݕࡧͱஔ׵ • ฤूϝχϡʔ • αΠυόʔ •

    ΧϨϯμʔ • ϖʔδίϯτϩʔϧ • ϖʔετ • γʔτ • SF Symbols • UIScreen • ηϧͷηϧϑϦαΠδϯά • UIKit x SwiftUI • UIDevice
  7. φϏήʔγϣϯόʔ

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

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

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

  11. ϘλϯͷҐஔ

  12. λΠτϧϝχϡʔ

  13. ݕࡧͱஔ׵

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

  15. ฤूϝχϡʔ

  16. None
  17. αΠυόʔ

  18. None
  19. ΧϨϯμʔ

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

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

  25. ϖʔδίϯτϩʔϧ

  26. None
  27. ϖʔετ

  28. None
  29. γʔτ

  30. None
  31. None
  32. SF Symbols

  33. EFGBVMU

  34. None
  35. UIScreen

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

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

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

    • Auto LayoutΛ࢖༻͍ͯ͠ΔͳΒ enabledIncludingConstraintsΛ࢖͏
  39. UIKit x SwiftUI

  40. None
  41. UIDevice

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

  43. ͓ΘΓʹ

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

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

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