LazyNavigationLink

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")
}
}
}
}
.
LazyNavigationLink
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 yourPackage.swift
.Usage
Replace occurrences of NavigationLink with
.