Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.99 KB

README.md

File metadata and controls

53 lines (35 loc) · 1.99 KB

TCBFreshchatBotWidget

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Usage

import TCBFreshchatBotWidget

@IBOutlet weak var widgetView: TCBFreshchatBotWidgetView!

// set and call whenever needed
let clientData: [String: Any] = ["name": "TCBFreshchatBotWidget User"]
let botWidget = TCBFreshchatBotWidget(clientHash: "d4980410f479d76eba5e00335eae38e8b04fd21e",
                                      botHash: "f90f6dfa4d478848d045c31ac0493f730c8368fd",
                                      showWidget: true,
                                      clientData: clientData)

widgetView.loadWidget(withBotWidget: botWidget)

// or
// set bot widget with resource directory to use
widgetView.loadWidget(withBotWidget: botWidget,
                      in: .developerDirectory,
                      inDomain: .userDomainMask)

Requirements

Installation

TCBFreshchatBotWidget is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'TCBFreshchatBotWidget', :git => 'https://github.com/TheCodingBug/TCBFreshchatBotWidget.git'

Author

Neil Francis Ramirez Hipona, [email protected]

License

TCBFreshchatBotWidget is available under the MIT license. See the LICENSE file for more info.