Fit

public enum Fit: URLImageQueryExtendable

The various options available within Fit specify different resizing behaviors for use in conjunction with the ImageOption.fit(for: Fit) option. By default, images are resized to fit inside the bounding box given by w andh while retaining their aspect ratio. Using the Fit options, you can change this behavior.

  • pad

    If specifying an optional UIColor or NSColor make sure to also provide a custom width and height or else you may receive an error from the server. If the color cannot be resolved to a hex string by the SDK, an error will be thrown.

    Declaration

    Swift

    case pad(withBackgroundColor: Color?)
  • Undocumented

    Declaration

    Swift

    public enum Fit: URLImageQueryExtendable
  • Undocumented

    Declaration

    Swift

    public enum Fit: URLImageQueryExtendable