A Swift package providing some view for call in SwiftUI.
- Copyright: ©Jaesung Lee.
- Xcode 12+
- iOS14+
DialView(onRequestVoiceCall:onRequestVideoCall:)
CallView(design:username:onSpeaker:onMuted:onEnded:)
Xcode > File > Swift Packages > Add Package Dependency > Enter repository URL: https://github.com/jaesung-wwdc/CallsUI
Your Swift Package > Package.swift
> Add new package to dependencies
> Add "CallsUI"
to the target > Then, now you can import CallsUI
in your source file.
- Example
import PackageDescription
let package = Package(
name: "SomePackage",
products: [
...
],
dependencies: [
.package(url: "https://github.com/jaesung-wwdc/CallsUI", from: "0.1.0") // 1. Add dependency to your swift package
],
targets: [
.target(
name: "SomePackage",
dependencies: ["CallsUI"]), // 2. Add CallsUI to the target as dependency
.testTarget(...),
]
)