Swift95

Desktop95

A classic desktop surface that lays out and optionally moves shortcuts.

Desktop95 supplies selection, activation, drag placement, and an optional custom background for DesktopShortcut95 values.

Use it

import Swift95
import SwiftUI

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

  var body: some View {
    Desktop95 {
      DesktopShortcut95("Notes", value: Route.notes) {
        Color.blue.frame(width: 32, height: 32)
      }
    }
  }
}

Essential behavior

MovementShortcut movement is enabled by default and can be disabled.
ActivationChoose single-click or double-click activation.
PersistenceAttach desktopState95 to own or persist shortcut offsets.

Related

Open the complete Desktop95 API reference →