Swift95, a Windows-95 inspired components library for SwiftUI

Hello everyone!

I want to share a small funny project I did recently. A Windows 95 inspired components kit in SwiftUI.

What's inside:

  • Supprot iOS 18+, macOS 15+
  • 25+ reusable components
  • Built-in Workspace navigation, including Task Bar and Windows.
  • Primitives like Theme, Fonts, Colors, etc.

You can use the controls individually, or built-in workspace navigation. Define a route, give it some SwiftUI content, and add a link to open it:

import SwiftUI
import Swift95

enum Screen: Hashable {
  case notes
}

struct DesktopDemo: View {
  @State private var notes = "Hello, Swift Forums!"

  var body: some View {
    Workspace95(for: Screen.self) { screen in
      switch screen {
      case .notes:
        WorkspaceWindow95("Notes", icon: { Text("📝") }) {
          TextEditor95(text: $notes)
            .padding(8)
        }
      }
    } desktop: {
      Desktop95 {
        DesktopShortcut95("Notes", value: Screen.notes) {
          Text("📝")
        }
      }
    } taskBar: {
      TaskBar95("Start", icon: { Text("🪟") }) {
        StartMenu95 {
          WorkspaceLink95("Notes", value: Screen.notes)
        }
      } tray: {
        Text95("12:00")
      }
    }
  }
}

download

Source code and docs are here:

15 Likes