UIImageView Extensions

Omar Albeik edited this page Dec 9, 2016 · 3 revisions

UIImageView extensions

Methods:

Name Return Description
download(from url: URL, contentMode: UIViewContentMode, placeholder: UIImage?, completionHandler: ((UIImage?, Error?) -> Void)?) -- Set image from a URL.
blur(withStyle: UIBlurEffectStyle = .light) -- Make image view blurry
blurred(withStyle: UIBlurEffectStyle = .light) UIImageView Blurred version of an image view