Skip to content

launchdarkly/hello-ios-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

caf4682 · Apr 17, 2024

History

85 Commits
Apr 17, 2024
Jan 5, 2024
Feb 6, 2019
Apr 17, 2024
Apr 17, 2024
Apr 17, 2024
Sep 7, 2018
Jul 26, 2022
Apr 5, 2017
Apr 17, 2024
Apr 17, 2024

Repository files navigation

LaunchDarkly sample iOS application

We've built a simple mobile application that demonstrates how LaunchDarkly's SDK works.

Below, you'll find the build procedure. For more comprehensive instructions, you can visit your Quickstart page or the iOS reference guide.

Build instructions

  1. Make sure you have Xcode installed
  2. Run 'pod install' to get the latest iOS client integrated.
  3. Open hello-ios.xcworkspace in Xcode
  4. Set the value of sdkKey in AppDelegate.swift to your LaunchDarkly mobile key. If there is an existing boolean feature flag in your LaunchDarkly project that you want to evaluate, set featureFlagKey in ViewController.swift to the flag key.
    // AppDelegate.swift
    private let sdkKey = ""

    // ViewController.swift
    fileprivate let featureFlagKey = "sample-feature"

You should see the message "The feature flag evaluates to .", the application will run continuously and react to the flag changes in LaunchDarkly.