This very appropriately named project is a generic iOS wrapper (bacteriophage) capable of injecting HTML (RNA) into your iOS device (host cell).
Here is an architecture diagram.
There are two types of web application that can be wrapped using this tool:
- A hosted website (e.g. just rendering a url on the internet).
- A static / local website (e.g. there is no server component).
Regardless of what type of site you are packaging into your application there are some common steps:
- Fork / clone this repository
- Update the
AppIcon.appiconset
to your app icon - If this is not a BIFFUD project, update
BIF Logo.imageset
with your loading informaton.
Instructions shift slightly from here:
To create a new iOS application that renders a static / local web appplication, do the following:
- Replace the content of
iOSVirus/Website
with your website's assets. - Build and publish.
Note: index.html
is the entry point.
To create a new iOS application that renders a hosted website (e.g. a url), do the following:
- Update
iOSVirus/Views/WebViewController.swift
by commenting L23-L25 (the lines specifying the local paths) - In that same file, uncomment L15-L17 (the lines specifying the remote url)
- Update
appUrl
to be whatever you are trying to host.
If you use this project please consider giving a shout out to Bad Idea Factory.