Skip to content
ambicuityPublic

About

Native macOS 26 window manager: snap windows with shortcuts and drags, build multi-app layouts, per-app rules. Swift 6, SwiftUI, Liquid Glass, no network.

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

0 stars

Watchers

0 watching

Forks

Tiler

CI License: MIT macOS 26+ Swift 6.2

Effortless window layouts for macOS.

Tiler is a native macOS 26 window manager built with Swift 6, SwiftUI and AppKit. You can snap windows by dragging them to edges and corners, place them with keyboard shortcuts, pick zones in Snap Mode, and save complete multi-app layouts. It works across any number of displays, can place specific apps automatically, and keeps separate profiles for different kinds of work. It lives in the menu bar, uses the system's Liquid Glass material, needs no account, and never touches the network.

Requirements

  • macOS 26 (Tahoe) or later.
  • Swift 6.2 toolchain: either the Xcode 26 Command Line Tools (for SwiftPM builds) or full Xcode 26 (for the Xcode project and UI tests).
  • The Accessibility permission, granted on first run. See Permissions.

Install

  1. Download Tiler-<version>.dmg from Releases.
  2. Optionally, check it against the SHA-256 published with the release: shasum -a 256 ~/Downloads/Tiler-<version>.dmg
  3. Open the disk image and drag Tiler into Applications.
  4. Open Tiler. macOS says it can't verify the app, so click Done.
  5. Open System Settings › Privacy & Security, scroll to the message about Tiler, click Open Anyway, and confirm. Or from Terminal: xattr -dr com.apple.quarantine /Applications/Tiler.app
  6. Grant Accessibility when the onboarding asks.

Releases need an Apple silicon Mac. To run Tiler on an Intel Mac, or if you'd rather not run a downloaded app, build it yourself (below).

Build and run

SwiftPM (works with only the Command Line Tools)

Scripts/setup-signing.sh       # once: a local signing identity, so rebuilds keep Accessibility
Scripts/build-app.sh           # release build → build/Tiler.app
open build/Tiler.app

setup-signing.sh creates a self-signed "Tiler Local Signing" identity in your login keychain, and build-app.sh uses it automatically. Without it, builds are ad-hoc signed, and macOS treats each rebuild as a new app that needs Accessibility access again. To sign with your own identity instead:

SIGN_IDENTITY="Developer ID Application: Your Name (TEAMID)" Scripts/build-app.sh

swift build compiles everything without bundling. The executable needs to live inside the .app for the login item, Accessibility and the Dock to work properly, so use the script to run it.

Xcode

xcodegen generate              # regenerates Tiler.xcodeproj from project.yml
open Tiler.xcodeproj

Choose the Tiler scheme, set your team under Signing & Capabilities, then Run. Tiler.xcodeproj is generated from project.yml; edit the YAML, not the project.

Launch arguments (development)

Argument Effect
--ui-testing Uses an in-memory configuration; your settings file is never touched
--skip-onboarding Starts past the first-run flow (with --ui-testing)
--open-settings Opens the Settings window at launch

Permissions

Tiler needs Accessibility access to detect and reposition other apps' windows. The onboarding flow explains why, deep-links to System Settings › Privacy & Security › Accessibility, notices the grant automatically, and offers a test move. Tiler doesn't read window contents, doesn't need network access, and requests no other permissions.

If access is revoked while Tiler is running, it stops arranging windows, keeps your configuration, shows Accessibility Required in the menu bar, and resumes by itself when access returns. No restart is needed.

Development note: macOS ties the grant to the code signature. Ad-hoc builds get a new identity each time, so the grant stops applying after every rebuild. To avoid that, run Scripts/setup-signing.sh once. It creates a self-signed "Tiler Local Signing" identity in your login keychain, and Scripts/build-app.sh then uses it automatically.

The first build afterwards asks to let codesign use the key: enter your password and choose Always Allow. Grant Accessibility once more; after that, rebuilds keep the grant. To remove the identity, delete "Tiler Local Signing" in Keychain Access.

Using Tiler

Action Default
Halves ⌃⌥← ⌃⌥→ ⌃⌥↑ ⌃⌥↓
Quarters ⌃⌥U ⌃⌥I ⌃⌥J ⌃⌥K
Thirds / two thirds ⌃⌥D ⌃⌥F ⌃⌥G / ⌃⌥E ⌃⌥T
Maximize / Almost maximize / Center ⌃⌥↩ / ⌃⌥⇧↑ / ⌃⌥C
Larger / Smaller / Restore ⌃⌥= / ⌃⌥- / ⌃⌥⌫
Undo last tiling ⌃⌥Z
Next / previous display ⌃⌥⌘→ / ⌃⌥⌘←
First three favorite layouts ⌃⌥1 ⌃⌥2 ⌃⌥3
Next / previous layout ⌃⌥] / ⌃⌥[
Snap Mode (keyboard zone picker) ⌃⌥Space
Command Palette ⌃⌥/
Pause / resume ⌃⌥P

Drag snapping works like this:

  • Drag a window to the left or right edge for a half.
  • Drag it into a corner for a quarter.
  • The top edge maximizes.
  • The bottom edge splits into thirds.

All of these are configurable in Behavior. Smart Snap offers the exact complement when you snap next to a window that already fills one side (for example 60/40).

macOS window tiling: macOS 15+ also tiles windows that are dragged to screen edges, and it is on by default. When it's on, macOS and Tiler both react to the same drag. A window that macOS has tiled keeps macOS's frame, because macOS rejects outside changes while the tile animation runs (about 400 ms). Tiler detects the setting and shows a notice. It checks once after each drag and re-applies its frame if it can, but it can't reliably win. Turn off "Drag windows to screen edges to tile" (and "Drag windows to menu bar to fill screen") in System Settings › Desktop & Dock when you use Tiler's drag-to-snap. Keyboard shortcuts, Snap Mode and layouts aren't affected. Tiler never changes another app's settings itself.

Architecture

TilerKit/   pure library: geometry, snap engine, layouts, rules, shortcuts, commands,
            persistence, logging  — no AppKit, fully unit tested
Tiler/      the app: App (lifecycle, composition root, menu bar), Accessibility,
            WindowEngine, DisplayEngine, SnapEngine (drag + preview), LayoutEngine,
            Profiles (rule engine), Shortcuts (Carbon hotkeys, recorder), State, UI
Tests/      Swift Testing unit tests for TilerKit
UITests/    XCUITest suite (requires full Xcode)
Docs/       ARCHITECTURE, FRONTEND-MAPPING, PRIVACY, ACCESSIBILITY
Scripts/    build-app.sh, test.sh, make-icon.swift

Key design points:

  • One coordinate model. All geometry is in the Accessibility/Quartz space (top-left origin, y down, negative coordinates allowed), converted from AppKit in exactly one place.
  • One command layer. Shortcuts, the popover, the palette, Snap Mode, drag-to-snap, rules and settings all execute TilerCommands through CommandExecutor.
  • Event driven. There are no polling loops and no timers while idle. Tiler relies on Carbon hotkeys, workspace and distributed notifications, and mouse-button monitors that are active only during drags.

See Docs/ARCHITECTURE.md for the full design and Docs/FRONTEND-MAPPING.md for how the HTML design specification maps onto native macOS, including what was intentionally not ported and why.

Behavior details

  • Repeat to resize: pressing the same half again steps ½ → ⅔ → ⅓ (Behavior › Keyboard).
  • Unsnap restore: dragging a window out of the zone Tiler put it in brings back its earlier size, and keeps it under the cursor.
  • Stubborn windows: apps that refuse a size (Terminal-style minimums, fixed-size windows) are pinned flush to the screen edges their zone touches, instead of floating with gaps.
  • Restore returns a window to where it was before Tiler moved it, or to wherever you last put it by hand.
  • Ignored apps (Apps page, or the pause menu in the menu bar): while such an app is in front, Tiler releases its window shortcuts so the app gets those keys, doesn't snap drags and doesn't apply rules. Apps that draw their own window dragging (Illustrator, After Effects, MATLAB…) are never drag-snapped.
  • Layout editor: dragging the edge between two regions resizes both, like a splitter: one grows exactly as much as the other shrinks, and neither can shrink below a minimum size. Only regions that actually share that edge follow; regions that just touch at a corner don't. Changes are drawn live while you drag and saved once when you let go. With the canvas focused, the arrow keys move the selected region 1 % (⇧ for 10 %), ⌥-arrows resize it by moving its right or bottom edge (the neighbour follows), Tab / ⇧Tab walk the regions, ⌫ deletes and Esc deselects. Edits from dragging, the keys, the toolbar and the inspector can be undone and redone with ⌘Z / ⇧⌘Z (Edit › Undo names the step, e.g. “Undo Resize Region”).
  • Drag zones: sliding from a side third into the middle of the bottom edge widens to two thirds. On portrait displays the long sides offer thirds, and the bottom edge offers halves.
  • Tiler warns when another window manager (Rectangle, Magnet, Moom…) is running, when macOS edge tiling is on, and when macOS seems to remember an older copy of Tiler in Accessibility (remove it with − and add it again).

Testing

Scripts/test.sh                # 126 unit tests (Swift Testing), with only the CLT

The unit tests cover:

  • geometry: single and multiple displays, negative coordinates, stacked and portrait displays, different scale factors
  • snap edges, corners, thirds and quarters, and Smart Snap
  • layout editing and planning
  • app-rule and title matching
  • window classification
  • bounded history
  • shortcut conflicts
  • fuzzy search
  • persistence round trips, defaults and migration

End-to-end tests against real windows (run from a terminal that has Accessibility access):

Scripts/build-app.sh && swift Scripts/e2e.swift

The runner builds a small fixture app (Scripts/e2e-fixture.swift) and only moves that app's windows; it never touches your own. It launches Tiler with an in-memory configuration and sends real keyboard and mouse events. It checks every resulting frame against the geometry formula, covering:

  • every shortcut
  • minimum-size and fixed-size windows
  • Undo and Restore
  • repeat cycling
  • Snap Mode and the Command Palette
  • the preview's stacking order
  • unsnap restore
  • ignored apps
  • the layout editor in Settings, including keyboard editing and Undo/Redo (E2E_ONLY=editor runs just this part)

It releases every modifier key after each synthetic key press. Otherwise macOS keeps Control held and later clicks turn into right-clicks.

With Xcode, Product › Test also runs TilerUITests. These cover onboarding, the permission screen, the menu bar popover, settings navigation and search, layout creation, the shortcut recorder, app rules, profiles and appearance switching.

Verification status

Verified on macOS 26.5.1, one 1680×1050 display, with only the Command Line Tools (Xcode not installed):

  • swift build finishes with 0 errors and 0 warnings in Swift 6 strict concurrency mode, and all 126 unit tests pass.
  • Tiler launches as a menu bar utility, idling at 0.0% CPU and about 52 MB RSS.
  • swift Scripts/e2e.swift: 60 passed, 0 failed. The 5 edge and corner drag frame checks were skipped because macOS edge tiling is on here, which leaves where edge-dragged windows land up to macOS. The suite covers:
    • the Settings › Layouts editor: every region of every preset can be selected by clicking where it's drawn, edge-drag resizing and body-drag moving follow the cursor, Split works, and the keyboard edits (→ move, ⌥→ linked resize, Tab / ⇧Tab, ⌫ delete) undo and redo with ⌘Z / ⇧⌘Z
    • all 18 window shortcuts, each landing on the exact predicted frame
    • minimum-size and fixed-size windows pinned to the right edges
    • Undo, Restore, and Restore after a manual move
    • ½ → ⅔ → ⅓ repeat cycling
    • Snap Mode and the Command Palette
    • the snap preview ordered directly below the dragged window
    • unsnap restore
    • ignored apps
  • Rendering was inspected by eye: the Settings window with the permission-denied state, the menu bar popover, Snap Mode and the Command Palette.

Not yet verified:

  • The XCUITest suite in UITests/ needs full Xcode; it's written but hasn't been run.
  • Multiple physical displays. Multi-display geometry, including negative coordinates and portrait and stacked arrangements, is covered only by unit tests.
  • A VoiceOver walkthrough, Increase Contrast and Reduce Transparency visuals, and display hot-plug window parking and restore.
  • Launch at login. It needs a stably signed build installed in /Applications.
  • With macOS edge tiling on, corner drags end in macOS's tile, as described in the note above.

Development setup

  • Swift 6 language mode with strict concurrency. UI and AX state is @MainActor, and engine types are Sendable values.
  • Logs use the unified logging subsystem app.tiler.Tiler, with categories Tiler.App, .Window, .Snap, .Layout, .Display, .Accessibility, .Shortcuts and .Persistence: log stream --predicate 'subsystem == "app.tiler.Tiler"'
  • Enable About › Developer › Show diagnostics overlay to see the active display, its frames, the window frame, cursor, snap zone, Accessibility state and the last command.

Distribution

Controlling other apps' windows through Accessibility isn't allowed inside the App Sandbox, so Tiler ships outside it. Builds on the Releases page are signed with the project's own "Tiler Local Signing" certificate with the hardened runtime, but they are not notarized by Apple, because notarization requires a paid Apple Developer membership. They are built for Apple silicon. Developer ID signing and notarization remain the goal. Updates (for example Sparkle) would plug in as a separate module; the engine doesn't depend on any update mechanism. Launch at login uses SMAppService.

Privacy

Tiler has no network access, no analytics and no account. Settings stay in ~/Library/Application Support/Tiler/. See Docs/PRIVACY.md.

Credits

Several robustness techniques were informed by studying Rectangle (MIT License, © Ryan Hanson). They were reimplemented in Tiler's own architecture; no Rectangle code is included:

  • edge-aligned placement of size-clamped windows
  • the "resize keeps two edges fixed" test for telling a drag from a resize
  • unsnap restore
  • repeat cycling
  • ignored apps, and the list of apps that draw their own window dragging

Tiler deliberately does not use Rectangle's private _AXUIElementGetWindow call, and it doesn't write to macOS's window-manager preferences.

Contributing

Issues and pull requests are welcome. See CONTRIBUTING.md for setup, tests and guidelines, and please follow the Code of Conduct. Report security issues privately as described in SECURITY.md. CHANGELOG.md lists what has changed.

License

Tiler is released under the MIT License.

About

Native macOS 26 window manager: snap windows with shortcuts and drags, build multi-app layouts, per-app rules. Swift 6, SwiftUI, Liquid Glass, no network.

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages