From dcd816d0a2291abee1ca8ce126ff0b3424b53a95 Mon Sep 17 00:00:00 2001 From: Bosco Ho Date: Sat, 23 Dec 2023 00:53:32 -0800 Subject: [PATCH] Update README.md --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 56f5140..445c065 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,14 @@ - Allows apps to customize tab re-selection behaviour (e.g. scroll-to-top before dismissing view). # Installation -[Swift Package URL] +## Swift Package Manager +Add `TabStar` to your Xcode project by adding a package dependency to your `Package.swift` file. +``` +dependencies: [ + .package(url: "https://github.com/boscojwho/TabStar.git", from: "1.0.0") +] +``` +Alternatively, open your Xcode project, and navigate to `File > Swift Packages > Add Package Dependency...` and enter `https://github.com/boscojwho/TabStar.git`. # Why? Doesn’t SwiftUI already provide a way to programmatically manipulate a `NavigationStack`’s path whether you use `NavigationPath` or a custom path type?