FlaneurImageDescriptor

public enum FlaneurImageDescriptor

Descriptor of an image resource.

  • url

    The image is stored remotely and accessible via a URL.

    Declaration

    Swift

    case url(_: URL)
  • The image is in-memory (via a UIImage instance).

    Declaration

    Swift

    case image(_: UIImage)
  • The image is part of the user’s Photos library.

    Declaration

    Swift

    case phAsset(_: PHAsset)
  • Declaration

    Swift

    public var hashValue: Int
  • Declaration

    Swift

    static public func == (lhs: FlaneurImageDescriptor, rhs: FlaneurImageDescriptor) -> Bool
  • Declaration

    Swift

    public var description: String
  • Fetches the images described by the instance.

    The handler will be called synchronously or asynchronously depending on the nature of self.

    Declaration

    Swift

    public func fetchImage(resultHandler: @escaping (UIImage?, Error?) -> ()) -> ()

    Parameters

    resultHandler

    the handler that is called with either an image or an error.