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

公式「ハーフモーダル」がやってきた!

 公式「ハーフモーダル」がやってきた!

2021/06/28 YUMEMI.swift #12 feat. HAKATA.swift 〜WWDC Recap~

9d1961575e45a8286cdde5f86dbba312?s=128

akatsuki174

June 28, 2021
Tweet

Transcript

  1. ެࣜʮϋʔϑϞʔμϧʯ͕ ΍͖ͬͯͨʂ YUMEMI.swift #12 feat. HAKATA.swift ʙWWDC Recapʙ @akatsuki174

  2. ࣗݾ঺հ

  3. • ਢ౻ຘʢ@akatsuki174ʣ • iOS→AndroidΤϯδχΞ • גࣜձࣾTimersॴଐ • 4݄ʹୈҰࢠग़࢈ɺҭٳத

  4. ࠓ೔ͷ࿩

  5. ͜ͷࢿྉͷݩʹͳͬͨಈը • Customize and resize sheets in UIKit • https://developer.apple.com/videos/play/

    wwdc2021/10063/ • 12෼͘Β͍ͷಈը͔ͩΒαΫοͱݟΒΕΔΑ
  6. ࠓ೔ͷࢿྉ

  7. ࠓ೔ͷࢿྉ • SpeakerDeckʹ͋͛ͯ·͢ • Qiitaʹ͸͋ͱͰจষ൛͋͛·͢

  8. ֓ཁ

  9. iOS 13ʙ

  10. iOS 15ʙ ᶃ

  11. iOS 15ʙ ᶄ

  12. ୊ࡐͱͳ͍ͬͯΔΞϓϦ

  13. None
  14. detentsΛ஌Δ

  15. detentsͱ͸ • γʔτ͕ࣗવʹࢭ·Δߴ͞ͷ͜ͱ • .mediumͱ.large͕͋Δ

  16. .medium

  17. .large

  18. None
  19. detentsΛ༻͍࣮ͨ૷ྫ

  20. ैདྷͷ৔߹

  21. ैདྷͷ৔߹

  22. iOS 15 ʙ

  23. iOS 15 ʙ

  24. ͨͩ͠… • ͜ͷ··ͩͱɺ্ʹεΫϩʔϧͨ࣌͠ʹɹ γʔτࣗମ΋εΫϩʔϧͯ͠ϑϧαΠζʹɹ ͳͬͯ͠·͏ • ʮγʔτ͸൒෼ͷঢ়ଶͰɺεΫϩʔϧͯࣸ͠ ਅબ୒ʯ͕Ͱ͖ͳ͍ • →ϓϩύςΟΛ௥Ճઃఆ͢Δ

  25. prefersScrollingExpands WhenScrolledToEdge

  26. ࣍ͷෆຬ • .largeͰࣸਅΛબ୒ͨ͠ͱ͖ʹɺԿ͕ىͬͨ͜ ͔Θ͔Γʹ͍͘ • →ࣸਅ͕બ୒͞ΕͨΒ.mediumʹͳΔΑ͏ʹ ͯ͠ΈΔ

  27. selectedDetentIdentifier

  28. ࣍ͷෆຬ • γʔτ͕ҾͬࠐΉΑ͏ʹͳ͚ͬͨͲɺɹɹɹ Ξχϝʔγϣϯ͕ͳ͍ͷͰ͍͖ͳΓมΘͬͯ ͠·͏ • →Ξχϝʔγϣϯ͚ͭΑ͏

  29. animateChanges

  30. ࣍ͷෆຬ • dimming͕͍ͭͯΔͱબ୒͞ΕͨࣸਅʹӨ͕ ͍ͭͯ͠·͏ • →औͬͯΈΑ͏

  31. dimming͋Γ/ͳ͠

  32. smallestUndimmed DetentIdentifier

  33. ΩʔϘʔυͱͷซ༻ • ΩʔϘʔυͱ.mediumγʔτΛಉ࣌ʹ࢖͏ɹ ৔߹ɺγʔτ͕ࣗಈͰ.largeʹͳͬͯ͘ΕΔ • ΩʔϘʔυඇදࣔ࣌͸.mediumʹ໭Δ

  34. ΩʔϘʔυ͋Γ/ͳ͠

  35. ࢹ֮తͳΧελϚΠζ

  36. landscape

  37. landscape࣌ͷදࣔ • iOS 13·Ͱ͸શը໘දࣔ͢Δ͔͠ͳ͔ͬͨ • iOS 15͔Β͸ௐઅ͢Δ͜ͱ͕Ͱ͖Δ • →prefersEdgeAttachedInCompactHeight

  38. ʙ iOS 13

  39. iOS 15 ʙ

  40. widthFollowsPreferred ContentSizeWhenEdgeAttached

  41. grabber

  42. grabberͷදࣔඇදࣔ • γʔτ্ͷόʔͷදࣔඇදࣔΛૢ࡞Ͱ͖Δ • →prefersGrabberVisible

  43. prefersGrabberVisible

  44. radius

  45. γʔτͷradiusมߋ • γʔτͷؙ֯۩߹Λௐ੔Ͱ͖Δ • →preferredCornerRadius

  46. preferredCornerRadius

  47. iPad

  48. iPadͷ৔߹

  49. iPadͷ৔߹

  50. iPadͷ৔߹

  51. delegateௐ੔

  52. ·ͱΊ

  53. ·ͱΊ • ϋʔϑϞʔμϧͬΆ͍ද͕ࣔඪ४APIΛ࢖ͬͯɹ ग़ͤΔΑ͏ʹͳͬͨΑ • ͍Ζ͍ΖΧελϚΠζͰ͖ΔΑ

  54. એ఻

  55. • αʔόʔαΠυΤϯδχΞ (PHP, Golang, AWS) • AndroidΤϯδχΞ (Kotlin) • iOSΤϯδχΞ

    (Swift) TimersͰ͸ݱࡏΤϯδχΞશ৬छ࠾༻தʂ ৄ͘͠͸”Timers”Ͱݕࡧ
  56. 30೔΋ొஃ༧ఆ

  57. ͝ਗ਼ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ