ImageAppearance

@objc(YMAImageAppearance)
@objcMembers
public class ImageAppearance : NSObject, NSCopying, NSMutableCopying

Class with standard image appearance settings (non-editable).

Remark

If you want to edit the settings of the standard appearance, use the MutableImageAppearance class.
  • Limits the width of the image.

    Declaration

    Swift

    public var widthConstraint: SizeConstraint { get }
  • Corresponding mutable representation of current image appearance.

    Declaration

    Swift

    public var mutableAppearance: MutableImageAppearance { get }
  • Undocumented

    Declaration

    Swift

    override public convenience init()
  • Creates an object of the ImageAppearance class, i.e., an image with the specified sizing constraint.

    Declaration

    Swift

    public required convenience init(widthConstraint: SizeConstraint)

    Parameters

    widthConstraint

    Limits the width of the image.

    Return Value

    Configured image appearance.

  • Undocumented

    Declaration

    Swift

    public static func appearanceWithWidthConstraint(_ widthConstraint: SizeConstraint) -> Self

NSCopying

  • Undocumented

    Declaration

    Swift

    public func copy(with zone: NSZone? = nil) -> Any

NSMutableCopying

  • Undocumented

    Declaration

    Swift

    public func mutableCopy(with zone: NSZone? = nil) -> Any