Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bring-shrubbery authored Apr 28, 2022
1 parent 917c41c commit 12aa572
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ You can cantrol whether the tooltip is presented or not through the `_ enabled:
@State var tooltipVisible = false
...
Button("Toggle tooltip") {
self.tooltipVisible = !self.tooltipVisible
self.tooltipVisible = !self.tooltipVisible
}
...
Text("I'm the confusing text.")
.tooltip(self.tooltipVisible) {
Text("I'm the text explaining the confusing text.")
}
.tooltip(self.tooltipVisible) {
Text("I'm the text explaining the confusing text.")
}
```

### Using custom configuration to add a jumping animation
Expand Down

0 comments on commit 12aa572

Please sign in to comment.