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]
-
Create a filter facet object
Declaration
Swift
init?(json: JSONObject)