This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
extension UIImage { | |
/// will load an image from a remote URL | |
/// - parameter fromURL: url to load from | |
/// - parameter completionHandler: completion handler for when the image is done loading. | |
/// - parameter image: UIImage? that was retrieved, or nil on error | |
/// - parameter error: LocalizedError? that is nil on success, or an error message on failure. | |
/// example | |
/// ``` |