Focus
public enum Focus : String
Use Focus to specify the focus area when resizing an image using either the Fit.thumb, Fit.fill
and Fit.crop options.
See Contentful’s Images API Reference Docs
for more information.
-
Focus on the top of the image.
Declaration
Swift
case top -
Focus on the bottom of the image.
Declaration
Swift
case bottom -
Focus on the left of the image.
Declaration
Swift
case left -
Focus on the right of the image.
Declaration
Swift
case right -
Focus on the top left of the image.
Declaration
Swift
case topLeft = "top_left" -
Focus on the top right of the image.
Declaration
Swift
case topRight = "top_right" -
Focus on the bottom left of the image.
Declaration
Swift
case bottomLeft = "bottom_left" -
Focus on the bottom right of the image.
Declaration
Swift
case bottomRight = "bottom_right" -
Focus on a face in the image, if detected.
Declaration
Swift
case face -
Focus on a collection of faces in the image, if detected.
Declaration
Swift
case faces
View on GitHub
Focus Enumeration Reference