Enums
The following enums are available globally.
-
Undocumented
See more
-
Quality options for JPG images to be used when specifying jpg as the desired image format. Example usage
See morelet imageOptions = [.formatAs(.jpg(withQuality: .asPercent(50)))]Declaration
Swift
public enum JPGQuality -
Use
See moreFormatto specify the image file formats supported by Contentful’s Images API. Supported formats arejpgpngandwebp.Declaration
Swift
public enum Format: URLImageQueryExtendable -
Use
See moreFocusto specify the focus area when resizing an image using either theFit.thumb,Fit.fillandFit.cropoptions. See Contentful’s Images API Reference Docs for more information.Declaration
Swift
public enum Focus: String -
The various options available within Fit specify different resizing behaviors for use in conjunction with the
See moreImageOption.fit(for: Fit)option. By default, images are resized to fit inside the bounding box given byw andh while retaining their aspect ratio. Using theFitoptions, you can change this behavior.Declaration
Swift
public enum Fit: URLImageQueryExtendable
-
The possible Field types in Contentful
See moreDeclaration
Swift
public enum FieldType: String
-
Use bounding boxes or bounding circles to perform queries on location-enabled content. See: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/locations-in-a-bounding-object
See moreDeclaration
Swift
public enum Bounds -
Undocumented
See more -
Property-value query operations used for matching patterns on either
sys
orfields
properties ofAssets andEntrys. Each operation specifies a property name on the left-hand side, with a value to match on the right. For instance, using the doesNotEqual operation in an a concrete Query like:Query(where:"fields.name", .doesNotEqual("Happy Cat"))would append the following to the http URL:
"fields.name[ne]=Happy%20Cat"Refer to the documentation for the various Query classes for more information.
See moreDeclaration
Swift
public enum QueryOperation
-
A representation of Linked Resources that a field may point to in your content model. This stateful type safely highlights links that have been resolved to Entries, Assets, or if they are still unresolved. If your data model conforms to
See moreContentModellableorEntryModellableyou can also use theatmethod to extract an instance of your linked type.Declaration
Swift
public enum Link
View on GitHub
Enums Reference