Corner Rounding
CornerRoundingType 과 종류
DefaultSlowCALayer
let photoImageNode = ASImageNode()
photoImageNode.cornerRoundingType = .defaultSlowCALayer
photoImageNode.cornerRadius = 20.0Precomposited
Clipping

CornerRoundingType 사용 결정 흐름도

1. 모퉁이 밑으로 움직임이 있는가?
2. 모퉁이 구석을 통과하는 움직임이 있는가?
3. 네 모서리가 같은 대상의 Node를 대상으로 하며 다른 Node가 모서리에 겹쳐지지 않는가?


Last updated
Was this helpful?