https://github.com/nenuadrian/sleek-website-ios-renderer
An elegant iOS app for rendering websites efficiently with JS callback implementation and loading screen
https://github.com/nenuadrian/sleek-website-ios-renderer
app ios js-callbacks render swift viewcontroller website website-app
Last synced: about 1 month ago
JSON representation
An elegant iOS app for rendering websites efficiently with JS callback implementation and loading screen
- Host: GitHub
- URL: https://github.com/nenuadrian/sleek-website-ios-renderer
- Owner: nenuadrian
- License: mit
- Created: 2016-11-28T18:14:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-06T14:42:43.000Z (over 1 year ago)
- Last Synced: 2025-03-06T15:35:30.874Z (over 1 year ago)
- Topics: app, ios, js-callbacks, render, swift, viewcontroller, website, website-app
- Language: Swift
- Homepage:
- Size: 1.88 MB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iOS app for elegant rendering of mobile-friendly websites
An elegant iOS app for rendering websites efficiently with JS callback implementation and fancy loading screen.
An experiment to get used with auto-constraints, Swift and back and forth callbacks between WKWebView (after initially using an UIWebView) and JS.
With audio play based on JS calls to save bandwidth the files are in the app.
# Main features
* Framework in place to execute JS on the site from the app and call functions in the app from within the website
* Elegant loading screen, with animated logo, fading in and out as pages load
* Swipe to the right for BACK and to the left for FORWARD
* Works in all orientations thanks to auto-constraints + the website being nicely mobile compatible
# How to use
Simply change the URL in ViewController.swift and update the icons and logos in the Assets manager. For more complex behaviour, take a quick look at Test/index.html and at the code in the ViewController to quickly setup JS communication between the app and the website and send anything from Geolocation data to user input.
## Prepare your website
Make sure your website is mobile responsive & lets browser know it.
```
```
# Small test
To test the JS callbacks between the app and a site, the Test/index.html file can be uploaded to a host and accessed.
# Need an Android version?
https://github.com/nenuadrian/android-website-elegant-rendering
# GNU GENERAL PUBLIC LICENSE
The GNU GPL is the most widely used free software license and has a strong copyleft requirement. When distributing derived works, the source code of the work must be made available under the same license.