Swift95

Desktop​Shortcut​Activation95

Single-click or double-click desktop shortcut launching.

DesktopShortcutActivation95 makes the desktop’s launch convention explicit while selection remains available in both modes.

Use it

import Swift95
import SwiftUI

struct DesktopShortcutActivation95Example: View {
  private enum Route: Hashable { case notes }

  var body: some View {
    Desktop95(shortcutActivation: .singleClick) {
      DesktopShortcut95("Notes", value: Route.notes) { Color.blue }
    }
  }
}

Essential behavior

singleClickOne primary activation opens the shortcut route.
doubleClickThe first click selects; the second activation opens.
ScopeThe mode applies to all shortcuts in one Desktop95.

Related

Open the complete DesktopShortcutActivation95 API reference →