Documentation
¶
Overview ¶
Package translation provides Go bindings for Apple's Translation SwiftUI cross-import overlay (_Translation_SwiftUI).
This overlay provides SwiftUI views and modifiers that integrate Translation with SwiftUI. All view constructors return uintptr values suitable for use with swiftui.ViewFromPointer.
Bridge sources under internal/swift/ are generated by go generate.
Threading ¶
All bridge functions dispatch to the main thread internally. The Go API is safe to call from any goroutine.
Quick start ¶
import "github.com/tmc/swiftui" import "github.com/tmc/swiftui/translation" ptr := translation.TranslationPresentation(...) view := swiftui.ViewFromPointer(ptr)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TranslationPresentation ¶
TranslationPresentation applies a translationPresentation modifier to present the system translation overlay.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.