To run the example project, clone the repo, and run pod install
from the Example directory first.
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)
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'
Neil Francis Ramirez Hipona, nferocious76@gmail.com
TCBFreshchatBotWidget is available under the MIT license. See the LICENSE file for more info.