ImageFetcher

struct ImageFetcher

Fetches images from network Provides a simple image cache with a fixed predefined capacity

  • Looks to provide an image from internal cache If not there, uses an image service to fetch it from network and, if successfull, caches the image

    Declaration

    Swift

    func fetchImage(urlString: String, completion: UIImage? -> ())
  • Undocumented

    Declaration

    Swift

    struct ImageFetcher