Installation
Add the Vizco iOS SDK to your SwiftUI project with Swift Package Manager.
The Vizco iOS SDK provides a SwiftUI view that renders published widgets natively in your iOS app.
Requirements
| Requirement | Minimum | |---|---| | iOS | 16.0 | | Swift | 5.9+ | | Xcode | 15.0+ |
Swift Package Manager
Add the Vizco SDK as a package dependency in Xcode:
- Open your project in Xcode
- Go to File > Add Package Dependencies...
- Enter the package URL:
https://github.com/renanboni/vizco.git- Set the dependency rule (e.g. Up to Next Major Version)
- Select the
VizcoSDKlibrary and add it to your target
Or add it directly to your Package.swift:
Package.swift
dependencies: [
.package(url: "https://github.com/renanboni/vizco.git", from: "1.0.0")
]Then add the product to your target:
Package.swift
.target(
name: "YourApp",
dependencies: [
.product(name: "VizcoSDK", package: "vizco")
]
)Next steps
- Initialization — Configure the SDK with your API key.
- Displaying Widgets — Render widgets in your SwiftUI views.