Installation
SwiftSonic is distributed as a Swift Package. It supports Swift Package Manager and Xcode’s built-in package integration.
Swift Package Manager
Section titled “Swift Package Manager”Add SwiftSonic to the dependencies array of your Package.swift:
dependencies: [ .package(url: "https://github.com/MathieuDubart/SwiftSonic", from: "0.6.1")]Then add "SwiftSonic" to the dependencies of any target that should use it:
.target( name: "MyApp", dependencies: ["SwiftSonic"])- In Xcode, choose File → Add Package Dependencies….
- Paste
https://github.com/MathieuDubart/SwiftSonicinto the search field. - Pick the version rule (recommended: Up to next major from
0.6.1). - Add the
SwiftSoniclibrary to your app target.
Platform requirements
Section titled “Platform requirements”TODO: confirm minimum supported platform versions (iOS, macOS, tvOS, watchOS, visionOS, Linux) from
Package.swiftin the SwiftSonic repository.
Swift version
Section titled “Swift version”TODO: confirm minimum supported Swift toolchain (5.9 / 5.10 / 6.0?) from
Package.swift.
Verifying the install
Section titled “Verifying the install”Once SwiftSonic resolves, import it from any Swift file:
import SwiftSonicIf the build succeeds, you’re ready to make a first request.