CIOFilterFacet
public struct CIOFilterFacet
Struct encapsulating a filter facet with information about the type and options.
-
Display name of the facet
Declaration
Swift
public let displayName: String -
The name (or value) of the facet
Declaration
Swift
public let name: String -
The max possible value for the facet (if it’s of type range)
Declaration
Swift
public let max: Int -
The minimum possible value for the facet (if it’s of type range)
Declaration
Swift
public let min: Int -
List of facet options
Declaration
Swift
public let options: [CIOFilterFacetOption] -
The type of the facet (i.e. range or multiple)
Declaration
Swift
public let type: String -
Whether the facet is hidden or not (i.e. true or false)
Declaration
Swift
public let hidden: Bool -
Additional metadata for the facet option
Declaration
Swift
public let data: [String : Any] -
Status of the facet option (for range type facets)
- An object with “min” and “max” values, if the facet type is range and the facet is selected
Declaration
Swift
public let status: (min: String, max: String)? -
Create a filter facet object
Declaration
Swift
init?(json: JSONObject)