NetworkImageService

protocol NetworkImageService

Image Service protocol

  • given a URL string, fetch an image or an error) and provides it to the completion closure enclosed in Result

    Declaration

    Swift

    func requestImage(urlString: String, completion: Result<UIImage> -> Void)