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

my first WWDC

my first WWDC

しもとり
WWDC19 Recap at LINE
https://line.connpass.com/event/134346/

LINE Developers

June 25, 2019
Tweet

More Decks by LINE Developers

Other Decks in Technology

Transcript

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

    attributedString = NSAttributedString(string: word) let line = CTLineCreateWithAttributedString(attributedString) let rect = CTLineGetBoundsWithOptions(line, .useGlyphPathBounds)
  2. μʔΫϞʔυରԠɺ։ນ dynamic imageͷͭ͘Γ͔ͨ ▸ UIImageAssetΛ࡞Ε͹͍͚Δʂ let imageAsset = UIImageAsset() imageAsset.register(lightImage,

    with: lightTraitCollection) imageAsset.register(darkImage, with: darkTraitCollection) let image = imageAsset.image(with: UITraitCollection.current)