JsWebView
An iOS bridge between Objective-C and JavaScript.
Install / Use
/learn @app-bootstrap/JsWebViewREADME
JsWebView
Preview

Usage
Installation
copy JsWebViewController.h, JsWebViewController.m into your project.
Add the following import to the top of the file:
#import "JsWebViewController.h"
Configuration
JsWebViewController *view = [[JsWebViewController alloc] init];
...
view.url = url;
Usage
var callback = function() {
$('#pushView').addEventListener('click', function() {
JSBridge.invoke('pushView', {
url: 'index.html'
});
}, false);
$('#popView').addEventListener('click', function() {
JSBridge.invoke('popView');
}, false);
$('#setTitle').addEventListener('click', function() {
JSBridge.invoke('setTitle', 'newTitle');
}, false);
};
document.addEventListener('JSBridgeReady', function() {
callback();
}, false);
License
The MIT License (MIT)
Copyright (c) 2015 xdf
Related Skills
node-connect
341.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.6kCommit, push, and open a PR
