From 12aa572c541961cdddd04c3ef3a1ec57a7514c63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoni=20Silvestrovi=C4=8D?= Date: Thu, 28 Apr 2022 11:39:33 +0300 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b03e6b2..8978e27 100644 --- a/README.md +++ b/README.md @@ -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