MediaItem

public protocol MediaItem

A protocol used to represent the data for a media message.

  • url

    The url where the media is located.

    Declaration

    Swift

    var url: URL?
  • The image.

    Declaration

    Swift

    var image: UIImage?
  • A placeholder image for when the image is obtained asychronously.

    Declaration

    Swift

    var placeholderImage: UIImage
  • The size of the media item.

    Declaration

    Swift

    var size: CGSize