Something went wrong. Try again.
An auto tiler for macOS
Something went wrong. Try again.
123456789101112131415161718import AppKitimport ParcelConfigimport SwiftUI
struct SetupShortcutRecorder: NSViewRepresentable { let captured: @MainActor (Result<KeyChord, SettingsFailure>) -> Void
func makeNSView(context: Context) -> RecordingButton { let button = RecordingButton() button.title = SettingsText.string("Listening for a shortcut…") button.bezelStyle = .rounded button.captured = captured return button }
func updateNSView(_ nsView: RecordingButton, context: Context) { nsView.captured = captured }}