swiftui-host

command
v0.6.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

swiftui-host

Hosts a Swift package defining SwiftUI views inside a native AppKit NSWindow via x/swiftui.

Run from source

From the repository root (or this directory):

go run ./examples/appkit/swiftui-host

Or point explicitly at the Swift package directory:

go run ./examples/appkit/swiftui-host -ui-dir ./examples/appkit/swiftui-host/ui

Self-contained go install with embedded dylib

Prebuild the universal ui/libExampleAppUI.dylib with go generate, then build or install with -tags swiftui_embed so the binary works from any working directory without the source tree:

go generate ./examples/appkit/swiftui-host
go install -tags swiftui_embed ./examples/appkit/swiftui-host
swiftui-host

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL