Skip to content

Commit

Permalink
add how to use tptweak value (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
wendyliga committed Sep 10, 2022
1 parent 009c8d2 commit 68f35b2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,21 @@ internal final class AppDelegate: UIResponder, UIApplicationDelegate {

```

## Use TPTweak Value
Once your TPTweakEntry is set, you can get and set a value from it.

### Read value
```
// will return true or false based on latest value changed on TPTweak
let isTrackingEnable = TPTweakEntry.enableTracking.getValue(Bool.self)
```

### Set value
if you want to set the value manually programmatically
```
TPTweakEntry.enableTracking.setValue(true)
```

# License
```
Copyright 2022 Tokopedia. All rights reserved.
Expand Down

0 comments on commit 68f35b2

Please sign in to comment.