Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
albertodebortoli committed Apr 26, 2021
1 parent f72b0bc commit 3710698
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3710698

Please sign in to comment.