WebViewSDK
Framework contains SDK to use camera torch from page loaded to WKWebView.
Usage
- Clone ios-webview-sdk to the directory:
ios-webview-sdk
- Open project file WebViewSDK.xcodeproj from ios-webview-sdk in XCode 14.3+:
- Build library in XCode.
- If you need to build library manually, use the following commands:
xcodebuild archive -sdk iphoneos -configuration Release -project WebViewSDK.xcodeproj -scheme WebViewSDK
Sample of HTML-file
Please find the sample HTML-file in assets of the demo project: index.html