Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 564 Bytes

uiimageview-transition-2016-08-24.md

File metadata and controls

40 lines (29 loc) · 564 Bytes

UIImageView.transitionWithView

@available(iOS 4.0, *)

label.text = "😃"

// ...
UIView.transitionWithView(label, 
	duration: 0.5,
	options: .TransformationFlipFromLeft,
	animations: {
		label.text = "😨"
	},
	completion: nil
)


imageView.image = UIImage(named:"empty")

// ...
UIView.transitionWithView(imageView, 
	duration: 0.5,
	options: .TransformationCrossDisolve,
	animations: {
		imageView.image = UIImage(named:"full")
	},
	completion: nil
)