Contents

astzweig/swiftui-launcher-window

πŸš„ Launcher window Scene for SwiftUI. Launch your app with style.

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].

[DocC]: https://www.swift.org/documentation/docc/documenting-a-swift-framework-or-package

Testing `LauncherWindow`

LauncherWindow includes an executable target that launches a SwiftUI app to test LauncherWindow. Either execute it with

$ swift run

or select the LauncherWindowTestApp under Product > Scheme in Xcode.

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

Package Metadata

Repository: astzweig/swiftui-launcher-window

Stars: 3

Forks: 0

Open issues: 0

Default branch: main

Primary language: swift

License: EUPL-1.2

Topics: launcher, macos-app, swift, swiftui

README: README.md