TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Feb 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Luda Fux.
The Playbuzz SDK enabled developers easily embed Playbuzz items in native apps.
To check out the example, download the repo run the sample project.
1) Add Playbuzz SDK using CocoaPods
pod 'PlaybuzzSDK'
2) Enable html loads in the plist Enable Allow Arbitrary Loads in App Transport Security Settings in your Info.plist
ViewController.swift
import UIKit
import PlaybuzzSDK
class ViewController: UIViewController{
override func viewDidLoad()
{
super.viewDidLoad()
let itemAlias = "shpaltman/10-best-commercials-for-the-olympic-games-rio-2016"
let companyDomain = "http://www.example.com"
let playbuzzView = PlaybuzzView.init(frame: self.view.frame)
playbuzzView.reloadItem(itemAlias,
companyDomain: companyDomain,
showItemInfo: true)
self.view.addSubview(playbuzzView)
}
}
companyDomain - the domain configured for your company
itemAlies - the url suffix of your item
showItemInfo - show or hide item title and description
PlaybuzzSDK is available under the MIT license. See the LICENSE file for more info.