Skip to content

Commit 85a321f

Browse files
authored
AppKitBackend: Respect environment font when updating text fields (#185)
1 parent 42f2ae8 commit 85a321f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/AppKitBackend/AppKitBackend.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@ public final class AppKitBackend: AppBackend {
676676
textField.isEnabled = environment.isEnabled
677677
textField.placeholderString = placeholder
678678
textField.appearance = environment.colorScheme.nsAppearance
679+
textField.font = Self.font(for: environment)
679680
textField.onEdit = { textField in
680681
onChange(textField.stringValue)
681682
}

0 commit comments

Comments
 (0)