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.
Create a launcher window:
import SwiftUI
import LauncherWindow
@main
struct YourApp: App {
var body: some Scene {
LauncherWindow(withId: "launcher") {
ActionItemsView()
} listItems: {
ListItemsView()
}
}
}
The library has enriched symbol documentation for DocC.
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
]
)
The minimum Swift version supported by swiftui-launcher-window releases are detailed below:
swiftui-launcher-window | Minimum Swift Version |
---|---|
0.0.1 ... |
5.7 |