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

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -