mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-04-19 07:19:53 +02:00
Update README.md
This commit is contained in:
18
README.md
18
README.md
@@ -64,7 +64,7 @@ In class add property:
|
||||
@GestureState var dragState = DragState.inactive
|
||||
```
|
||||
|
||||
Class `DragState` see in file of project. Also you can see it in [apple's example page](https://developer.apple.com/documentation/swiftui/gestures/composing_swiftui_gestures).
|
||||
Class `DragState` see in file. Also you can see it in [apple's example page](https://developer.apple.com/documentation/swiftui/gestures/composing_swiftui_gestures).
|
||||
|
||||
To card add `gester` and `offset`:
|
||||
|
||||
@@ -76,14 +76,6 @@ To card add `gester` and `offset`:
|
||||
.gesture(dragGester)
|
||||
```
|
||||
|
||||
#### Animation
|
||||
|
||||
In preview I am use Spring animation for all cards:
|
||||
|
||||
```swift
|
||||
.animation(.spring())
|
||||
```
|
||||
|
||||
#### 3D
|
||||
|
||||
For add 3D rotation for back cards use code:
|
||||
@@ -94,6 +86,14 @@ For add 3D rotation for back cards use code:
|
||||
|
||||
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">
|
||||
|
||||
Reference in New Issue
Block a user