Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Built In Commands
Clone this wiki locally
HybridKit ships with a few helpful built-in commands. These are enabled by default; you can easily remove the
Displays a native alert (i.e.
cancel_button_title- String - OPTIONAL
Opens a URL using the system's behavior (
Sets the current HybridKit controller's URL, without a loading animation (such as if you want to set it to a
Sets the current HybridKit controller's URL, using a loading animation.
Sets the current HybridKit controller's title, which will be visible in the navigation bar.
Enables or disables scrolling in the web view.
Sets the background color of the controller, which is visible when the web view scrolls past the limits.
color- String. Can be a hex value like
#ff00ffor a reasonable color name like
Sets the deceleration rate of the web view scroll.
deceleration_rate- String, either
Triggers a state-machine event on the web controller, which will change the UI accordingly.
event- String, either
start_load(to start the loading animation),
load_error(to hide the web view), or
finish_load(to show the web view).
In each command, you can pass an optional