From dad4d8f0976e6cc0ddb33e9d4821371f3db0d4f1 Mon Sep 17 00:00:00 2001 From: Ivan Vorobei Date: Wed, 26 Jun 2019 08:09:44 +0300 Subject: [PATCH] Update README.md --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a39300..b0e110e 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Also include: -#### 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