Update README.md

This commit is contained in:
Ivan Vorobei
2019-06-26 08:09:44 +03:00
parent 931d4cd358
commit dad4d8f097

View File

@@ -56,7 +56,7 @@ Also include:
<img align="left" src="https://hsto.org/webt/xh/3t/eq/xh3teq68fx1bujdlsgpon4jtijo.gif" width="280">
#### Gester, Animation, 3D
#### Gester
In class add property:
@@ -74,6 +74,24 @@ To card add `gester` and `offset`:
.gesture(dragGester)
```
#### 3D
For add 3D rotation for back cards use code:
```swift
.rotation3DEffect(Angle(degrees: dragState.isActive ? 0 : 60), axis: (x: 10.0, y: 10.0, z: 10.0))
```
For medium card use 30 angles.
#### Animation
In preview I am use Spring animation for all cards:
```swift
.animation(.spring())
```
#### Transition And Blur
<img src="Resources/TransitionBlur.png" width="700">