linking optimizely isFeatureEnabled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let userId = "user123" | |
let attributes: [String: Any] = [ | |
"customerId": 123, // Attributes used for targeted audience-based rollout | |
"isVip": true, | |
] | |
enabled = delegate.optimizely.isFeatureEnabled(featureKey: "hello_world", userId: userId, attributes: attributes) | |
print("Feature is enabled? - \(enabled) for userId: \(userId)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment