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.
-
If specifying an optional
UIColororNSColormake 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
-
Undocumented
Declaration
Swift
public enum Fit: URLImageQueryExtendable
-
Undocumented
Declaration
Swift
public enum Fit: URLImageQueryExtendable
View on GitHub
Fit Enum Reference