UIModelDataMedia

public struct UIModelDataMedia : Decodable
extension UIModelDataMedia: MediaItem

Used for Image & Video cards

  • url

    URL to the image or video

    Declaration

    Swift

    public var url: String?
  • Undocumented

    Declaration

    Swift

    public var width: String?
  • Undocumented

    Declaration

    Swift

    public var height: String?
  • Undocumented

    Declaration

    Swift

    public var iWidth: Int { get }
  • Undocumented

    Declaration

    Swift

    public var iHeight: Int { get }
  • Undocumented

    Declaration

    Swift

    public var type: String?
  • Undocumented

    Declaration

    Swift

    public var mediaType: MediaType? { get }
  • Media Type

    See more

    Declaration

    Swift

    public enum MediaType : String
  • Undocumented

    Declaration

    Swift

    public init(url: String)
  • Undocumented

    Declaration

    Swift

    public init(url: String, width: Int, height: Int)

Extensions for UI Message Data protocols

  • Declaration

    Swift

    public var sourceUrl: URL? { get }
  • Declaration

    Swift

    public var placeholder: SwiftUI.Image { get }
  • Declaration

    Swift

    public var size: CGSize { get }