iOS client SDK for Ultravox.
If you're starting from scratch, strongly consider building with Flutter instead.
If you're not starting from scratch then you probably already know how to add this as a dependency, but it will look something like this:
import Ultravox
in any file. After a few seconds you'll see an error about "No such module."- Click on the error and it should give you the option to search package collections. Do so.
- Paste this in your search bar (top right) and hit enter:
https://github.com/fixie-ai/ultravox-client-sdk-ios
- This package should be found and this README should be rendered. Click
Add Package
. - Pick your App target and again click
Add Package
. - Increment your XCode frustrations counter and consider switching to Flutter. 😉
See Apple's documentation for more info.
If you're building a package, add this to your Package.swift
:
let package = Package(
...
dependencies: [
.package(url: "https://github.com/fixie-ai/ultravox-client-sdk-ios.git", .upToNextMajor("0.0.1")),
],
targets: [
.target(
name: "MyApp",
dependencies: [
.product(name: "Ultravox", package: "ultravox-client-sdk-ios"),
]
),
]
)
let session = UltravoxSession()
await session.joinCall(joinUrl: "joinUrlFromYourServer");
await session.leaveCall();
See the example app at https://github.com/fixie-ai/ultravox-client-sdk-ios-example for a more complete example. To get a joinUrl
, you'll want to integrate your server with the Ultravox REST API.