Image

@available(iOS 9.0, *)
public class Image : UIImageView

A UIImageView that can show colors

  • Creates a UIImageView with a UIImage from a UIImage

    Declaration

    Swift

    public init(_ image: UIImage)
  • Creates a UIImageView with a UIImage from a UIColor

    Declaration

    Swift

    public init(color: UIColor)
  • Creates a UIImageView with a UIImage from a named asset

    Declaration

    Swift

    public init(named name: String)
  • Sets the contentMode of the UIImageView

    Declaration

    Swift

    @discardableResult
    public func contentMode(_ mode: UIView.ContentMode) -> Self