A small SwiftUI application showing how to use the Featurevisor Swift SDK.
Learn more about Featurevisor here.
The application evaluates the same flag, variation, feature variables, and global variables as the other Featurevisor SDK examples.
You need Xcode 16.3 or newer. The application targets iOS 15 or newer.
- Open
FeaturevisorExampleIOS.xcodeprojin Xcode. - Wait for Swift Package Manager to resolve the Featurevisor dependency.
- Select an iPhone simulator.
- Run the
FeaturevisorExampleIOSscheme.
The application uses this production datafile:
https://featurevisor-example-cloudflare.pages.dev/production/featurevisor-sdk-v3.json
The direct SDK integration lives in FeaturevisorViewModel.swift. Change its context values to see how Featurevisor selects different rules, variations, and global variable overrides.
xcodebuild \
-project FeaturevisorExampleIOS.xcodeproj \
-scheme FeaturevisorExampleIOS \
-configuration Debug \
-destination 'generic/platform=iOS Simulator' \
CODE_SIGNING_ALLOWED=NO \
buildLearn more in the Featurevisor Swift SDK documentation.
