From 38c68d686e9fc4c07bdc35fe9786a40077295bda Mon Sep 17 00:00:00 2001 From: Ivan Vorobei Date: Wed, 26 Jun 2019 14:31:41 +0300 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 474f2aa..3cd67b3 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ In preview I am use `Spring` animation for all cards: For button using `SFSymbols` pack with ready-use icons. Also support customisable weight: -``` +```swift Image(systemName: show ? "slash.circle.fill" : "slash.circle") .font(Font.title.weight(.semibold)) ``` @@ -112,7 +112,7 @@ Image(systemName: show ? "slash.circle.fill" : "slash.circle") For change state using `@State` as property: -``` +```swift @State var show = false ``` @@ -120,7 +120,7 @@ For change state using `@State` as property: Size of area attach to state of property `show`: -``` +```swift .frame(width: show ? 350 : 290, height: show ? 420 : 260) ```