Created
January 17, 2020 21:36
-
-
Save timelincoln7648/da4577e2df99f698044b7dbc91bd6519 to your computer and use it in GitHub Desktop.
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