mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-06-12 17:24:27 +02:00
Update README.md
This commit is contained in:
@@ -99,12 +99,13 @@ In preview I am use `Spring` animation for all cards:
|
|||||||
|
|
||||||
<img align="left" src="Resources/Previews/area-to-card.gif" width="280">
|
<img align="left" src="Resources/Previews/area-to-card.gif" width="280">
|
||||||
|
|
||||||
#### Frame
|
#### SFSymbols
|
||||||
|
|
||||||
Size of area attach to state of property `show`:
|
For button using `SFSymbols` pack with ready-use icons. Also support customisable weight:
|
||||||
|
|
||||||
```
|
```
|
||||||
.frame(width: show ? 350 : 290, height: show ? 420 : 260)
|
Image(systemName: show ? "slash.circle.fill" : "slash.circle")
|
||||||
|
.font(Font.title.weight(.semibold))
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Button
|
#### Button
|
||||||
@@ -115,13 +116,12 @@ For change state using `@State` as property:
|
|||||||
@State var show = false
|
@State var show = false
|
||||||
```
|
```
|
||||||
|
|
||||||
#### SFSymbols
|
#### Frame
|
||||||
|
|
||||||
For button using `SFSymbols` pack with ready-use icons. Also support customisable weight:
|
Size of area attach to state of property `show`:
|
||||||
|
|
||||||
```
|
```
|
||||||
Image(systemName: show ? "slash.circle.fill" : "slash.circle")
|
.frame(width: show ? 350 : 290, height: show ? 420 : 260)
|
||||||
.font(Font.title.weight(.semibold))
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Transition And Blur
|
## Transition And Blur
|
||||||
|
|||||||
Reference in New Issue
Block a user