This library provide simple chat integration, that based on WebimMobileSDK.
pod WebimMobileWidget
- Select File > Swift Packages > Add Package Dependency. Enter
https://github.com/webim/webim-mobile-ui-ios
in the "Choose Package Repository" dialog. - In the next page, specify the version resolving rule as "Up to Next Major" with the latest
webim-mobile-ui-ios
release. - After Xcode checking out the source and resolving the version, you can choose the "WebimMobileSDK" library and add it to your app target.
Add following line to your Cartfile:
github "webim/webim-mobile-ui-ios" ~> 1.3.10
If you want to use framework in extension, you must set Preprocessor Macros.
- Click Build Settings
- Find (or search) Preprocessor Macros under Apple LLVM 6.0 - Preprocessing
- Add TARGET_IS_EXTENSION or any other name of your choice in both the debug and release sections. Notice that some functions not allow when you use app extension.
This code prevent incorrect keyboard behaviour.
func applicationDidEnterBackground(_ application: UIApplication) {
WidgetAppDelegate.shared.applicationDidEnterBackground()
}
You must call this method for correct behaviour of Widget
WMWidgetBuilder.set(sessionConfig:)
If you skip calling this methods Widget will be use default configurations for these viewControllers.
WMWidgetBuilder.set(chatViewControllerConfig:)
WMWidgetBuilder.set(imageViewControllerConfig:)
WMWidgetBuilder.set(fileViewControllerConfig:)
See example for more informtaion.
WebimWidget is available under the MIT license. See the LICENSE file for more info.