WKWebView to load the BeyondWords web widget and provides a native Swift interface for interacting with the underlying JavaScript API. As a result, most widget functionality and properties are shared across the iOS SDK and web widget.
You can compare supported properties in the widget properties reference.
Before you begin, make sure you have created a project and generated some content.
Installation
Install via CocoaPods
Install via XCFramework
Download the XCFramework attached to the latest GitHub release.Download XCFramework
View the latest iOS SDK releases on GitHub.
Load content
Add PlayerView to your view hierarchy
Load content into the widget
YOUR_PROJECT_ID with your numeric project ID and YOUR_CONTENT_ID with your content ID.
Once your app is running, the widget will automatically load the specified content.
Configuration
The preferred way to configure the widget is by going to the Widget page in your project dashboard. However, you can override properties at the app level:Update properties after loading
You can also update properties after the widget has loaded:Lifecycle
Calldestroy() on the PlayerView when you no longer need the widget, for example, when the view is removed from the hierarchy or the containing view controller is dismissed. This releases the underlying web view and widget resources.
Example app
Refer to the example app, which demonstrates core widget functionality, including how to build a custom player UI.Example app
Explore the example application on GitHub.
GitHub repository
iOS SDK repository
View the source code, releases, and API documentation on GitHub.