Minimal iOS scaffold for BITBOX apps. The native app uses WKWebView to load local web assets that run bitbox-cli in the browser bundle and display a generated BCH mnemonic.
- A native iOS shell using
WKWebView - Local
www/index.htmlloaded from the app bundle Hello BITBOX- A 128-bit mnemonic generated with:
let BITBOXCli = require("bitbox-cli/lib/bitbox-cli").default
let BITBOX = new BITBOXCli()
let mnemonic = BITBOX.Mnemonic.generate(128)npm install
npm run build:web
open BitboxScaffoldIOS.xcodeprojIn Xcode, select the BitboxScaffoldIOS scheme and run it in an iOS simulator.
The generated BitboxScaffoldIOS/www/bundle.js is committed so the Xcode project can run immediately after cloning.
BitboxScaffoldIOS/AppDelegate.swift- app bootstrapBitboxScaffoldIOS/ViewController.swift- WKWebView setupBitboxScaffoldIOS/www/app.js- BITBOX mnemonic demo sourceBitboxScaffoldIOS/www/bundle.js- browser bundle loaded by the appBitboxScaffoldIOS/www/index.html- local web UIpackage.json- browserify build for the web bundle