Swiftpack.co -  bambuser/bambuser-livevideoshoppingplayer-sdk-ios as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
bambuser/bambuser-livevideoshoppingplayer-sdk-ios
This SDK helps you add a Bambuser live shopping player to your UIKit and SwiftUI apps.
.package(url: "https://github.com/bambuser/bambuser-livevideoshoppingplayer-sdk-ios.git", from: "0.1.1")

Bambuser Live Video Shopping Player (Beta)

BambuserLiveVideoShoppingPlayer simplifes the integration of the Bambuser Live Video Shopping player in any iOS app.

Beta Version

NOTE! This project is in early stages of development. Feel free to experiment with it but refrain from using it in production for now.

See the release notes for status and progress.

Installation

Swift Package Manager

You can install BambuserLiveVideoShoppingPlayer with SPM:

https://github.com/bambuser/bambuser-livevideoshoppingplayer-sdk-ios

After installing the library in your app, remember to import BambuserVideoLiveShoppingPlayer in every file where you want to use it.

Platform Support

The library supports iOS 13+ and can be used with UIKit and SwiftUI.

UIKit

When using UIKit, you can create a player like this:

let player = LiveVideoShoppingPlayerView(
    configuration: playerConfiguration)

You can then add the player anywhere in your app, resize it to fit your needs etc. Read more about configuration the player further down.

You can also use the LiveVideoShoppingPlayerViewController if you want to wrap the view.

SwiftUI

When using SwiftUI, you can create a player like this:

let player = LiveVideoShoppingPlayer(
    showId: "The ID of the show to watch",
    configuration: playerConfiguration)

You can then add the player anywhere in your app, resize it to fit your needs etc. Read more about configuring the player further down.

Player Configuration

You can use a PlayerConfiguration to configure your live shopping player.

The configuration specifies things like theme, UI element, button configuration, event handlings etc.

Demo apps

The Demo folder contains a SwiftUI demo app.

Have a look at it for examples on how to add a live shopping player to your app.

GitHub

link
Stars: 1
Last commit: Yesterday

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

6 weeks ago

✨ New features

  • PlayerEvent has a new addShowToCalendar event
  • PlayerConfiguration.UI has a new addToCalendarSheet option
  • The embedded player will now ignore the safe areas when needed

💡 Behavior changes

  • The top-right close button in the player is now hidden by default.

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