Rootless

Automate iOS, iPadOS, and macOS using plain JavaScript. Build custom widgets and interact directly with native APIs.

Download on the App Store
Rootless app interface

Plain JavaScript

Supports ES6. Scripts are stored as plain .js files on your disk.

Native APIs & Documentation

Integrate directly with iOS native APIs. Fully documented, available offline.

Siri Shortcuts

Trigger scripts via Siri. Present tables, websites, and custom HTML natively.

System Integration

Run from the Share Sheet, process inputs, and manage local files via Files.app.

x-callback-url

Communicate seamlessly and trigger workflows with other apps on your device.

Customizable & Ready

Tailor the code editor to your liking. Includes several example scripts to start immediately.

Documentation

Also inside the app, or as rootless.json.

CornerRadius

One radius per corner

What cornerRadius takes when the corners differ. A plain number rounds all four alike; these name them. Leading and trailing follow the writing direction, as in EdgeInsets;

Properties

topLeadingNumber

Top leading (left) corner

topTrailingNumber

Top trailing (right) corner

bottomLeadingNumber

Bottom leading (left) corner

bottomTrailingNumber

Bottom trailing (right) corner

Methods

CornerRadius.all(value)CornerRadius ›

The same radius on all four corners. The same as writing the number.

  • value Number required
CornerRadius.only(options)CornerRadius ›

The corners named; the rest stay square.

  • options Any required
    • topLeading Number

      Points.

    • topTrailing Number

      Points.

    • bottomLeading Number

      Points.

    • bottomTrailing Number

      Points.

CornerRadius.horizontal(leading, trailing)CornerRadius ›

The two corners on the leading side, and the two on the trailing side.

  • leading Number required
  • trailing Number required
CornerRadius.vertical(top, bottom)CornerRadius ›

The two top corners, and the two bottom corners.

  • top Number required
  • bottom Number required

Examples

Rounded on top only

Container({
  backgroundColor: Color.blue(),
  cornerRadius: CornerRadius.vertical(16, 0),
  child: Text("Header")
})

One corner

Rectangle({
  fill: Color.red(),
  cornerRadius: CornerRadius.only({ topTrailing: 12 })
})