This library can be used with iOS and Mac applications. The source code for the client is available on Github.
CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions,
visit their website. To integrate Flagsmith into your Xcode project using CocoaPods, specify it in your
The SDK is initialised against a single environment within a project on https://flagsmith.com, for example the Development or Production environment. You can find your environment key in the Environment settings page.
Within your application delegate (usually AppDelegate.swift) add:
Now you are all set to retrieve feature flags from your project. For example to list and print all flags:
To retrieve a feature flag boolean value by its name:
To retrieve a config value by its name:
These methods can also specify a particular identity to retrieve the values for a user registration. See Identities , using the forIdentity parameter.
To retrieve a trait for a particular identity (see Traits):