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

iOSのCorner Rounding Strategy

Shunki Tan
October 25, 2017

iOSのCorner Rounding Strategy

CALayerのcornerRadiusはやめよう。ハイパフォーマンスなCorner Roundingを実現するためのtipsになります。

potatotips #44 2017/10/25
https://potatotips.connpass.com/event/68024/

Shunki Tan

October 25, 2017
Tweet

More Decks by Shunki Tan

Other Decks in Programming

Transcript

  1. Cornerͷ಺ଆͰεΫϩʔϧ͢Δʁ CornerͷཪଆͰ εΫϩʔϧ͢Δʁ YES NO 4ͭͷCorner͕̍ͭͷViewʹ ඃ͍ͬͯΔ YES NO CornerͷཪଆͰεΫϩʔϧ͢Δʁ

    YES NO ̍. എܠෆಁ໌Clipը૾ ̎. എܠಁ໌Clipը૾ YES NO ̏. ViewΛ্͔ΒඃͤΔ ̐. Corner Radius
  2. Cornerͷ಺ଆͰεΫϩʔϧ͢Δʁ CornerͷཪଆͰ εΫϩʔϧ͢Δʁ YES NO 4ͭͷCorner͕̍ͭͷViewʹ ඃ͍ͬͯΔ YES NO CornerͷཪଆͰεΫϩʔϧ͢Δʁ

    YES NO ̍. എܠෆಁ໌Clipը૾ ̎. എܠಁ໌Clipը૾ YES NO ̏. ViewΛ্͔ΒඃͤΔ ̐. Corner Radius