https://github.com/dankinsoid/vdtransition
`SwiftUI` like transition for `UIKit`
https://github.com/dankinsoid/vdtransition
Last synced: 9 months ago
JSON representation
`SwiftUI` like transition for `UIKit`
- Host: GitHub
- URL: https://github.com/dankinsoid/vdtransition
- Owner: dankinsoid
- License: mit
- Created: 2022-08-21T21:00:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-01T07:47:17.000Z (over 1 year ago)
- Last Synced: 2025-09-03T10:42:43.844Z (10 months ago)
- Language: Swift
- Size: 28.4 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VDTransition
[](https://travis-ci.org/dankinsoid/VDTransition)
[](https://cocoapods.org/pods/VDTransition)
[](https://cocoapods.org/pods/VDTransition)
[](https://cocoapods.org/pods/VDTransition)
## Description
VDTransition provides easy way to describe view transitions.
- [Documantaion](https://dankinsoid.github.io/VDTransition/documentation/vdtransition)
- [Tutorial](https://dankinsoid.github.io/VDTransition/tutorials/vdtransition/tutorial)
## Example
```swift
view1.set(hidden: true, transition: .opacity)
view2.set(hidden: true, transition: .move(edge: .trailing))
view3.removeFromSuperview(transition: [.move(edge: .trailing), .opacity])
```
## Installation
1. [CocoaPods](https://cocoapods.org)
Add the following line to your Podfile:
```ruby
pod 'VDTransition'
```
and run `pod update` from the podfile directory first.
2. [Swift Package Manager](https://github.com/apple/swift-package-manager)
Create a `Package.swift` file.
```swift
// swift-tools-version:5.6
import PackageDescription
let package = Package(
name: "SomeProject",
dependencies: [
.package(url: "https://github.com/dankinsoid/VDTransition.git", from: "1.24.0")
],
targets: [
.target(name: "SomeProject", dependencies: ["VDTransition"])
]
)
```
```ruby
$ swift build
```
## Author
dankinsoid, voidilov@gmail.com
## License
VDTransition is available under the MIT license. See the LICENSE file for more info.