This example is a simple iOS application that demonstrates how to use the OpenFeature Swift SDK to integrate OpenFeature into your iOS application.
- Start your relay proxy with the flag configuration in the folder (
flags.goff.yaml). - Replace the
endpointin theopenfeature_swift_iosApp.swiftfile with your OpenFeature endpoint (replacehttps://your_domain.ioby the endpoint of your relayproxy). - Start the iOS application in Xcode.
- By clicking on the Check flag button, you will call the OpenFeature API to get the flag value.
- The switch button will be set to on/off dependending on the flag
my-flagvalue.
Check the go-feature-flag/openfeature-swift-provider repository.