LaunchDarkly Sample iOS Application
We've built a simple Swift application that demonstrates how LaunchDarkly's SDK works. Below, you'll find the basic build procedure, but for more comprehensive instructions, you can visit your Quickstart page.
Build instructions
-
Make sure you have XCode installed
-
Run 'pod install' to get the latest iOS client integrated.
-
Open
hello-ios.xcworkspace
in XCode -
Copy the mobile key from your account settings page and set
mobileKey
inAppDelegate.swift
. -
Copy the feature flag key from your LaunchDarkly dashboard and set
featureFlagKey
inViewController.swift
-
Run your application through XCode.
-
Update the feature flags from your LaunchDarkly dashboard and the feature flag label in the view controller should update with the current value of the feature flag.