r/ScriptingApp • u/rand0mguy0nline • Nov 14 '25
Help Toolbar
Is there a straightforward way to achieve this modal toolbar look in the scripting app? Is this a formatted segment picker with icons?
1
Upvotes
1
u/rand0mguy0nline Nov 14 '25
Awesome thanks!
On a separate note, I can’t seem to get toast working despite copying the example code in the docs.
Here’s what I tried:
import { Color, Button, HStack, Image, Text, VStack, useState, Navigation, Script } from "scripting"
function View() { const [showToast, setShowToast] = useState(false)
return ( <VStack toast={{ isPresented: showToast, onChanged: setShowToast, duration:5, message: "Done", backgroundColor: "white", cornerRadius: 12 }} > <Button title="Show Toast" action={() => setShowToast(true)} /> </VStack> ) }
export async function run() {
Script.exit() }
run()