EXTENSION
public extension Capablevar statusMap: [String: String]The statusMap property returns a dictionary of all CapableFeatures, that the Capable instance has been initialized with along with their current statuses. This object is compatible with most analytic SDKs such as Fabric Answers, Firebase Analytics, AppCenter Analytics, or HockeyApp.
While most entries can only have a status set to enabled or disabled, the .largerText feature offers the font scale set by the user.
func isFeatureEnabled(feature: CapableFeature) -> BoolProvides information regarding the current status of a provided feature.
-
Parameters:
- feature: The feature of interest.
-
Returns:
trueif the given feature has been enabled, otherwisefalse.
| Name | Description |
|---|---|
| feature | The feature of interest. |