Installation

SwiftUINavigationTransitions can be installed using the Swift Package Manager.

Add the Package Dependency

Add the library as a dependency to your Package.swift file:

dependencies: [
    .package(url: "https://github.com/davdroman/swiftui-navigation-transitions", from: "0.15.0"),
]

Alternatively, you can add the package directly in Xcode by navigating to File > Add Packages... and entering the repository URL: https://github.com/davdroman/swiftui-navigation-transitions

Add the Library to Your Target

Next, add the appropriate library product to your app's target.

For SwiftUI Applications

For standard SwiftUI apps, add SwiftUINavigationTransitions to your target's dependencies:

.target(
    name: "MyApp",
    dependencies: [
        .product(name: "SwiftUINavigationTransitions", package: "swiftui-navigation-transitions"),
    ]
),

For UIKit-Only Applications

If you are working in a UIKit project and want to use the transition engine without SwiftUI, you can use the UIKitNavigationTransitions library:

.target(
    name: "MyUIKitApp",
    dependencies: [
        .product(name: "UIKitNavigationTransitions", package: "swiftui-navigation-transitions"),
    ]
),

Finally, import the library in your source files:

import SwiftUINavigationTransitions