TwilioVoiceAdapter is a SPM (Swift Package Manager) package which is a refactored codebase from the Twilio Voice Quickstart for iOS. The project's goal is to create reusable code for Twilio Voice clients.
Project Link: https://github.com/SKrotkih/twilio-voice-ios-adapter
twilio-voice-ios-adapter
, select main
branch and select your project name in the Add to Project
. Press on the Add Package
button.import TwilioVoiceAdapter
...
let viewModel = TwilioVoiceController()
...
viewModel.$enableMainButton
.receive(on: RunLoop.main)
.sink { [weak self] enable in
self?.placeCallButton.isEnabled = enable
}.store(in: &disposableBag)
and then update your app UI with listening of the TwilioVoiceController.swift observable objects. See examples for UIKit and SwiftUI in TwilioSwiftUiQuickstart and TwilioUIKitQuickstart project.
link |
Stars: 0 |
Last commit: 1 year ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics