LazyNavigationLink

main

OliverLetterer/LazyNavigationLink

LazyNavigationLink

Platforms Swift Swift Package Manager

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It is in early development, but LazyNavigationLink does support its use on supported platforms.

Once you have your Swift package set up, adding LazyNavigationLink as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/OliverLetterer/LazyNavigationLink.git", .upToNextMajor(from: "0.1.0"))
]

Usage

Replace occurrences of NavigationLink with

struct MyView: View {
    var body: some View {
        List {
            NavigationLink("Next") {
                Text("Details")
            }
        }
    }
}

struct MyView: View {
    var body: some View {
        List {
            NavigationLink(label: Text("Next")) {
                Text("Details")
            }
        }
    }
}

.

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri Mar 15 2024 14:04:23 GMT-0900 (Hawaii-Aleutian Daylight Time)