Ariver
2026-08-28 7a94f69bb0dc5206a2e68d82486fd5959d16e664
C1.source/Apptag/AppGridSupport.swift
@@ -122,6 +122,9 @@
    var isFocused: FocusState<Bool>.Binding
    let onCommit: () -> Void
    let onCancel: () -> Void
    private static let placeholderAttributes: [NSAttributedString.Key: Any] = [
        .foregroundColor: NSColor.white.withAlphaComponent(0.48)
    ]
    func makeCoordinator() -> Coordinator {
        Coordinator(
@@ -140,7 +143,10 @@
        field.focusRingType = .none
        field.font = NSFont.systemFont(ofSize: 15, weight: .medium)
        field.textColor = .white
        field.placeholderString = placeholder
        field.placeholderAttributedString = NSAttributedString(
            string: placeholder,
            attributes: Self.placeholderAttributes
        )
        field.delegate = context.coordinator
        field.target = context.coordinator
        field.action = #selector(Coordinator.submitAction(_:))
@@ -158,7 +164,10 @@
        context.coordinator.onCommit = onCommit
        context.coordinator.onCancel = onCancel
        context.coordinator.field = field
        field.placeholderString = placeholder
        field.placeholderAttributedString = NSAttributedString(
            string: placeholder,
            attributes: Self.placeholderAttributes
        )
        field.setAccessibilityLabel(placeholder)
        if !field.hasMarkedTextInput, field.stringValue != text {