Fit
public enum Fit
The fit
parameter enables you to fit the given image properly within the specified height
and width
.
You need to provide values for the height
, width
and fit
parameters.
See Fit Mode
-
If fit is set to
bounds
, it will constrain the given image into the specified height and width. See Fit to boundsDeclaration
Swift
case bounds(Size)
-
If fit is set to crop, it will crop the given image to the defined height and width. See Fit by cropping
Declaration
Swift
case crop(Size)