DesktopShortcut95
A route-valued desktop icon and title.
DesktopShortcut95 participates in Desktop95 selection, activation, movement, and workspace opening behavior.
Use it
import Swift95
import SwiftUI
struct DesktopShortcut95Example: View {
private enum Route: Hashable { case computer }
var body: some View {
DesktopShortcut95("Computer", value: Route.computer) {
Color.gray.frame(width: 32, height: 32)
}
}
}Essential behavior
IdentityThe route value provides stable identity and the window-opening destination.
ContextPlace shortcuts inside Desktop95 for selection and placement behavior.
IconThe icon closure accepts any SwiftUI view, including Swift95Icons.Icon95.