wwdc19

 wwdc19

Bf65cc9bdf26321a7579ddca7930cd10?s=128

Shigure Shimotori

June 25, 2019
Tweet

Transcript

  1. 8.
  2. 9.
  3. 13.
  4. 19.

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

    attributedString = NSAttributedString(string: word) let line = CTLineCreateWithAttributedString(attributedString) let rect = CTLineGetBoundsWithOptions(line, .useGlyphPathBounds)
  5. 23.
  6. 26.

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

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