swiftui-launcher-window

main

🚄 Launcher window Scene for SwiftUI. Launch your app with style.
astzweig/swiftui-launcher-window

LauncherWindow

Launcher window on macOS

LauncherWindow adds a new window scenes to SwiftUI. Launcher windows are frameless windows that display a welcome message and let the user choose an item from a list i.e. a database or a folder from many recent ones.

Usage

Create a launcher window:

import SwiftUI
import LauncherWindow

@main
struct YourApp: App {
    var body: some Scene {
        LauncherWindow(withId: "launcher") {
            ActionItemsView()
        } listItems: {
            ListItemsView()
        }
    }
}

Documentation

The library has enriched symbol documentation for DocC.

Adding LauncherWindow as a Dependency

To use the LauncherWindow library in a SwiftUI project, add it to the dependencies for your package:

let package = Package(
    // name, platforms, products, etc.
    dependencies: [
        // other dependencies
        .package(url: "https://github.com/astzweig/swiftui-launcher-window", from: "1.0.0"),
    ],
    targets: [
        .executableTarget(name: "<command-line-tool>", dependencies: [
            // other dependencies
            .product(name: "LauncherWindow", package: "swiftui-launcher-window"),
        ]),
        // other targets
    ]
)

Supported Versions

The minimum Swift version supported by swiftui-launcher-window releases are detailed below:

swiftui-launcher-window Minimum Swift Version
0.0.1 ... 5.7

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

Last updated: Fri Oct 18 2024 03:19:45 GMT-0900 (Hawaii-Aleutian Daylight Time)