ios - UIViewControllerAnimatedTransitioning - Animate UIBezierPath Rounded Rect -
i making animator using uiviewcontrolleranimatedtransitioning protocol. during transition, want make top corners of viewcontroller it's transitioning rounded. problem when put following code in animation-block doesn't animate.
let rect = cgrect(x: 0, y: 0, width: 320, height: 480) let path = uibezierpath(roundedrect: bounds, byroundingcorners: [.topleft, .topright], cornerradii: cgsize(width: 16, height: 16)) let mask = cashapelayer() mask.path = path.cgpath self.layer.mask = mask
what need animate correctly? transition interactive in future.
Comments
Post a Comment