TextureTransition

Description
TextureTransition provides easy way to describe node transitions based on VDTransiotion.
Example
.tansition
and defaultAnimateLayoutTransition
```swift
private func configureTransitions() {
node1.transition = .scale(anchor: .topTrailing)
node2.transition = .opacity
node3.transition = [.move(edge: .trailing), .opacity]
}
override func animateLayoutTransition(_ context: ASContextTransitioning) {
defaultAnimateLayoutTransition(context, animation: .default)
}
2. Some helpers methods
```swift
node1.set(hidden: true, transition: .opacity)
node2.set(hidden: true, transition: .move(edge: .trailing))
node3.removeFromSupernode(transition: [.move(edge: .trailing), .opacity])
Installation
- CocoaPods
Add the following line to your Podfile:
pod 'TextureTransition'
and run pod update
from the podfile directory first.
- Swift Package Manager
Create a Package.swift
file.
// swift-tools-version:5.6
import PackageDescription
let package = Package(
name: "SomeProject",
dependencies: [
.package(url: "https://github.com/dankinsoid/TextureTransition.git", from: "1.1.4")
],
targets: [
.target(name: "SomeProject", dependencies: ["TextureTransition"])
]
)
$ swift build
Author
dankinsoid, voidilov@gmail.com
License
TextureTransition is available under the MIT license. See the LICENSE file for more info.
TextureTransition
Description
TextureTransition provides easy way to describe node transitions based on VDTransiotion.
Example
.tansition
anddefaultAnimateLayoutTransition
```swift private func configureTransitions() { node1.transition = .scale(anchor: .topTrailing) node2.transition = .opacity node3.transition = [.move(edge: .trailing), .opacity] }override func animateLayoutTransition(_ context: ASContextTransitioning) { defaultAnimateLayoutTransition(context, animation: .default) }
Installation
Add the following line to your Podfile:
and run
pod update
from the podfile directory first.Create a
Package.swift
file.Author
dankinsoid, voidilov@gmail.com
License
TextureTransition is available under the MIT license. See the LICENSE file for more info.