From 3710698b1ec4822f8bd8e28448bd12982cf4dde7 Mon Sep 17 00:00:00 2001 From: Alberto De Bortoli Date: Mon, 26 Apr 2021 18:12:25 +0100 Subject: [PATCH] Update README.md --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1519e69..ca6b7db 100644 --- a/README.md +++ b/README.md @@ -198,11 +198,10 @@ if let tweak = tweak { } ``` -`@TweakProperty` and `@OptionalTweakProperty` property wrappers are available to mark properties representing feature flags. Mind that by using these property wrappers, a static instance of `TweakManager` is needed. +`@TweakProperty`, `@OptionalTweakProperty` and `@FallbackTweakProperty` property wrappers are available to mark properties representing feature flags. Mind that in order to use these property wrappers, a static instance of `TweakManager` is needed. ```swift -@TweakProperty(fallbackValue: <#fallback_value#>, - feature: <#feature_key#>, +@TweakProperty(feature: <#feature_key#>, variable: <#variable_key#>, tweakManager: <#TweakManager#>) var labelText: String @@ -216,6 +215,14 @@ var labelText: String var meaningOfLife: Int? ``` +```swift +@FallbackTweakProperty(fallbackValue: <#nillable_fallback_value#>, + feature: <#feature_key#>, + variable: <#variable_key#>, + tweakManager: <#TweakManager#>) +var shouldShowFeatureX: Bool +``` + 3. Run an A/B test ```swift