mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-04-10 03:03:47 +02:00
Update README.md
This commit is contained in:
12
README.md
12
README.md
@@ -64,7 +64,9 @@ Also include:
|
||||
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))
|
||||
.rotation3DEffect(
|
||||
Angle(degrees: dragState.isActive ? 0 : 60), axis: (x: 10.0, y: 10.0, z: 10.0)
|
||||
)
|
||||
```
|
||||
|
||||
For medium card use 30 angles.
|
||||
@@ -99,14 +101,6 @@ For change state using `@State` as property:
|
||||
@State var show = false
|
||||
```
|
||||
|
||||
#### Frame
|
||||
|
||||
Size of area attach to state of property `show`:
|
||||
|
||||
```swift
|
||||
.frame(width: show ? 350 : 290, height: show ? 420 : 260)
|
||||
```
|
||||
|
||||
## Transition And Blur
|
||||
|
||||
<img src="Resources/TransitionBlur.png" width="700">
|
||||
|
||||
Reference in New Issue
Block a user