wwdc19

 wwdc19

Bf65cc9bdf26321a7579ddca7930cd10?s=128

Shigure Shimotori

June 25, 2019
Tweet

Transcript

  1. ͸͡ΊͯͷWWDC WWDC19 Recap at LINE

  2. ͸͡ΊͯͷWWDC @S_Shimotori_pub ▸ LINE.appͷUI·ΘΓ ▸ iOSDCωοτϫʔΫελοϑ ▸ DroidKaigiӡӦελοϑ ▸ WWDCॳࢀՃ

  3. ͸͡ΊͯͷWWDC ࠓ೔࿩͢͜ͱ ▸ ࢀՃऀ਺ઍਓͱ͸ ▸ ϥϘͰฉ͍͖ͯͨ͜ͱ ▸ ΞΫηγϏϦςΟͲ͏ͨ͠Β͍͍ͷ ▸ λΠจࣈ໰୊;ͨͨͼ

    ▸ μʔΫϞʔυରԠɺ։ນ
  4. ࢀՃऀ਺ઍਓͱ͸

  5. ࢀՃऀ਺ઍਓͱ͸ WWDCʹॳࢀՃͯ͠Θ͔ͬͨ͜ͱ ▸ ᷚ௨Γͷςϯγϣϯͷߴ͞ ▸ ௕ظઓʹ༏͍͠Ռ෺ͱOdwalla ▸ /16ͰIPΞυϨεେ൫ৼΔ෣͍ ▸ ަ௨खஈ͕ͱͯ΋ͭΒ͍

    ▸ ಥવͷ৽ཁૉൃදͰ্खʹϥϘΛ׆༻Ͱ͖ͳ͍ ▸ ϚΠϊϦςΟͷਓΛݟ͔͚Δ͜ͱ͕Ͱ͖Δ
  6. ࢀՃऀ਺ઍਓͱ͸ WWDCʹॳࢀՃͯ͠Θ͔ͬͨ͜ͱ ▸ ᷚ௨Γͷςϯγϣϯͷߴ͞ ▸ ௕ظઓʹ༏͍͠Ռ෺ͱOdwalla ▸ /16ͰIPΞυϨεେ൫ৼΔ෣͍ ▸ ަ௨खஈ͕ͱͯ΋ͭΒ͍

    ▸ ಥવͷ৽ཁૉൃදͰ্खʹϥϘΛ׆༻Ͱ͖ͳ͍ ▸ ϚΠϊϦςΟͷਓΛݟ͔͚Δ͜ͱ͕Ͱ͖Δ
  7. ࢀՃऀ਺ઍਓͱ͸ ϚΠϊϦςΟͷਓΛݟ͔͚Δ͜ͱ͕Ͱ͖Δ ▸ ൺ཰Ͱߟ͑Δͱଟ͍ͱ͸ݴ͑ͳ͍ ▸ ࢀՃऀ͕਺ઍਓ͍ΔͷͰਓ਺ࣗମ͸ଟ͘ײ͡ΒΕΔ ▸ Ҋ಺൘΍࠵͠෺Ͱଘࡏʹؾ͔ͮ͞ΕΔ

  8. None
  9. None
  10. ϥϘͰ
 ฉ͍͖ͯͨ͜ͱ

  11. ϥϘͰฉ͍͖ͯͨ͜ͱ Ͳ͜ͷϥϘʁ ▸ ΞΫηγϏϦςΟͲ͏ͨ͠Β͍͍ͷ
 ˠAccessibility Design Lab ▸ λΠจࣈ໰୊;ͨͨͼ
 ˠText

    Lab ▸ μʔΫϞʔυରԠɺ։ນ
 ˠUIKit Lab
  12. ΞΫηγϏϦςΟ
 Ͳ͏ͨ͠Β͍͍ͷ

  13. None
  14. ΞΫηγϏϦςΟͲ͏ͨ͠Β͍͍ͷ ରԠ΍࣮૷ʹࠔΔྫ ▸ ʮ14:30ʯͷ೔ຊޠಡΈ্͕͓͔͍͛͠ ▸ ಠࣗʹʮ͡Ύ͏Α͡͞Μͬ͡΀Μʯͱಡ·͍͍ͤͯʁ ▸ ࢒ߴ΍ޱ࠲൪߸ͳͲͷݸਓ৘ใ ▸ ಡΈ্͍͍͛ͤͯ͞ͷʁ

  15. ΞΫηγϏϦςΟͲ͏ͨ͠Β͍͍ͷ ΞΫηγϏϦςΟରԠͰࠔͬͨΒ ▸ Appleͷ࡞ͬͨΞϓϦͷ࣮૷ʹ฿͏ ▸ উखʹ௚͞ͳ͍Ͱόάใࠂ͚ͩ͢Δͱ͔ ▸ Apple PayͷΫϨΧಡΈ্͛Λਅࣅ͢Δͱ͔

  16. λΠจࣈ໰୊ ;ͨͨͼ

  17. ▸ λΠจࣈ͸ॎʹ௕͍ͷͰ༉அ͢Δͱ͸Έग़ͪΌ͏ʂ λΠจࣈ໰୊;ͨͨͼ λΠจࣈ໰୊ͱ͸ ೔ຊ Japan ประเทศญี่ปุ่น

  18. λΠจࣈ໰୊;ͨͨͼ λΠจࣈͷߴ͞Λ஌Γ͍ͨʂ ▸ UIKitͷྗͰ͸จࣈͷ࣮αΠζΛऔಘ͢Δ͜ͱ͕Ͱ͖ͳ͍

  19. λΠจࣈ໰୊;ͨͨͼ จࣈͷେ͖͞ʢਅʣΛௐ΂Δ ▸ Core TextΛ࢖͑͹ਖ਼֬ͳେ͖͕͞Θ͔Δ let word = "ประเทศญี่ปุ่น" let

    attributedString = NSAttributedString(string: word) let line = CTLineCreateWithAttributedString(attributedString) let rect = CTLineGetBoundsWithOptions(line, .useGlyphPathBounds)
  20. λΠจࣈ໰୊;ͨͨͼ λΠจࣈ໰୊;ͨͨͼ - vs Swift UI Text ▸ clip͞Εͨɺͩͱ……ʁʁ

  21. μʔΫϞʔυରԠɺ։ນ

  22. μʔΫϞʔυରԠɺ։ນ ҰൠతͳʁμʔΫϞʔυରԠ ▸ Assetʹొ࿥͢Ε͹ࣗಈͰ࢖͍෼͚ͯ͘ΕΔΑ ▸ System color΍Semantic colorͰҰൃରԠͩΑ

  23. None
  24. μʔΫϞʔυରԠɺ։ນ LINE.appͷμʔΫϞʔυରԠ ▸ Assetʹొ࿥͢Ε͹ࣗಈͰ࢖͍෼͚ͯ͘ΕΔΑ
 →ొ࿥͠·ͤΜͰ͖·ͤΜ ▸ System color΍Semantic colorͰҰൃରԠͩΑ
 →࢖͍·ͤΜͰ͖·ͤΜ

  25. μʔΫϞʔυରԠɺ։ນ AssetΛ࢖Θͣʹdynamicͳ΋ͷΛͭ͘Δ ▸ Dynamic color ▸ UIColor.init(dynamicProvider:) ▸ Dynamic image

    ▸ ͋Εʁઆ໌͞Ε͚ͯͨͬʁ
  26. μʔΫϞʔυରԠɺ։ນ dynamic imageͷͭ͘Γ͔ͨ ▸ UIImageAssetΛ࡞Ε͹͍͚Δʂ let imageAsset = UIImageAsset() imageAsset.register(lightImage,

    with: lightTraitCollection) imageAsset.register(darkImage, with: darkTraitCollection) let image = imageAsset.image(with: UITraitCollection.current)
  27. ·ͱΊʁ

  28. ·ͱΊʂ WWDC͸͜Μͳͱ͜Ζ ▸ ੈքதͷ։ൃऀͱձ͑Δ ▸ ࣗ෼ͷ࣮ྗ͕ϥϘͷ׆༻۩߹ʹग़ͪΌ͏ ▸ ظ͕ؒ୹͍ͷͰؤுΓ·͠ΐ͏