ContentstackConfig
ContentstackConfig
| Name | Type | Description |
|---|---|---|
| dateDecodingStrategy | JSONDecoder.DateDecodingStrategy | An optional configuration to override the date decoding strategy that is provided by the the SDK. |
| timeZone | TimeZone | An optional configuration to override the TimeZone the SDK will use to decode Date instances. The SDK will use a TimeZone with 0 seconds offset from GMT if this configuration is omitted. |
| sessionConfiguration | URLSessionConfiguration | The configuration for the URLSession. Note that HTTP headers will be overwritten internally by the SDK so that requests can be authorized correctly. |
setEarlyAccess
With the setEarlyAccess header support, you can access features that are part of the early access program.
Example:
var config = ContentstackConfig() let earlyAccess : [String] = ["Taxonomy","Teams"] config.setEarlyAccess(earlyAccess) let stack = Contentstack.stack(apiKey: "<API_KEY>", deliveryToken: "<DELIVERY_TOKEN>", environment: "<ENVIRNOMENT>")