-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
Husnain Ali edited this page Sep 27, 2026
·
3 revisions
| Swift | 6.0 |
| Xcode | 16.0+ |
| iOS | 16.0+ |
| macOS | 13.0+ |
| tvOS | 16.0+ |
| watchOS | 9.0+ |
| visionOS | 1.0+ |
| Dependency manager | Swift Package Manager |
The Combine layer requires Combine. The SwiftUI helpers require the Observation framework
(iOS 17 / macOS 14 / tvOS 17 / watchOS 10 / visionOS 1). Both are #if canImport-gated, so the
package builds and works without them.
dependencies: [
.package(url: "https://github.com/ihusnainalii/SwiftNetworkKit.git", from: "1.1.0")
],
targets: [
.target(
name: "MyApp",
dependencies: [
.product(name: "SwiftNetworkKit", package: "SwiftNetworkKit")
]
)
]File → Add Package Dependencies, enter https://github.com/ihusnainalii/SwiftNetworkKit.git, and
pick "Up to Next Major Version" from 1.1.0.
From 1.0.0 the public API follows semantic versioning: a breaking change means a major bump. See Versioning and Roadmap.
SwiftNetworkKit is source-available proprietary software (not open source). See FAQ Licensing and Support. Repo: https://github.com/ihusnainalii/SwiftNetworkKit · Docs: https://swiftnetworkkit.vercel.app/
Getting started
Guides
- Defining Endpoints
- Authentication and Token Refresh
- Security and Certificate Pinning
- Retry Policy
- Interceptors
- Request Management
- Caching
- Offline Request Queue
- Uploads Downloads and Progress
- Pagination and Batch
- Combine and SwiftUI
- Error Handling
- Observability
- Testing and Mocking
- Best Practices and a Complete Example
- Platform Notes, Thread Safety and Performance
Reference