-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
ChiefVenzox edited this page Jun 5, 2026
·
1 revision
SwiftState is distributed as a Swift Package.
- Open your app in Xcode.
- Select
File > Add Package Dependencies.... - Paste the package URL:
https://github.com/ChiefVenzox/SwiftState.git
- Choose
Branchand enter:
main
- Add the
SwiftStateproduct to your app target.
The main branch currently contains the newest APIs, including async effects and SwiftUI binding helpers. When a newer release tag is published, you can switch to a version rule such as Up to Next Major Version.
dependencies: [
.package(url: "https://github.com/ChiefVenzox/SwiftState.git", branch: "main")
]Then add SwiftState to your target dependencies:
.target(
name: "YourApp",
dependencies: ["SwiftState"]
)- Swift 5.7 or newer
- Xcode 14 or newer
- iOS 15+
- macOS 12+
- tvOS 15+
- watchOS 8+
After adding the package, import it in a Swift file:
import SwiftStateIf the project builds, SwiftState is ready to use.