Swiftpack.co - SKrotkih/twilio-voice-ios-adapter as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by SKrotkih.
SKrotkih/twilio-voice-ios-adapter 0.1.10
Refactoring of the actual original project SwiftVoiceQuickstart.
⭐️ 0
🕓 1 year ago
iOS
.package(url: "https://github.com/SKrotkih/twilio-voice-ios-adapter.git", from: "0.1.10")

TwilioVoiceAdapter

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

Requirements

  • Xcode 13+
  • Swift 5

Get started with TwilioVoiceAdapter

  • Open your project in Xcode, navigate to Menu -> File -> Add packages... and enter https://github.com/SKrotkih/twilio-voice-ios-adapter in the Search or Enter Package URL filed. Select twilio-voice-ios-adapter, select main branch and select your project name in the Add to Project. Press on the Add Package button.
  • To start using this code you should prepare an access token. Implement TwilioAccessTokenFetcher for that.

How to use?

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.

Changes history:

  • 01-10-2023 - first commit

GitHub

link
Stars: 0
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics