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

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -