Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

corner radius with animation swift

//Works for iOS 10+
UIViewPropertyAnimator(duration: 3.0, curve: .easeIn) {
    square.layer.cornerRadius = 20
}.startAnimation()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #corner #radius #animation #swift
ADD COMMENT
Topic
Name
3+5 =