This guide provides a simple way to add a custom token price widget to your iOS homescreen using the Scriptable iOS app. Follow these steps to set up the widget:
-
Download Scriptable
Install Scriptable from the Apple App Store. -
Create a New Script
- Open Scriptable and go to the Scripts tab.
- Tap the + button in the top right corner to add a new script.
- Name your script (e.g., “token-widget”).
-
Get the Widget Code
-
Paste the Code into Scriptable
- Return to Scriptable and paste the copied code into your new script.
-
Run the Script
- Tap the Play button in the bottom right corner of Scriptable to test the code. If everything is set up correctly, the widget will display a preview.
-
Add the Widget to Your Homescreen
- Go to your iOS homescreen, tap and hold to enter Edit Mode.
- Add a new widget by tapping the + icon in the top left corner.
- Search for Scriptable and add the smallest widget size.
-
Select Your Script
- Tap and hold the new Scriptable widget on your homescreen.
- Choose Edit Widget, then select your newly created script from the Script option.
- Your widget should now display the token price on your homescreen!
Enjoy having real-time token price updates right on your iOS homescreen!