Skip to content

Commit c2b9f36

Browse files
committed
address PR comments
1 parent ed1e030 commit c2b9f36

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Sources/AppKitBackend/AppKitBackend.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ public final class AppKitBackend: AppBackend {
653653
.name
654654
case .emailAddress:
655655
.emailAddress
656-
default:
656+
case .text, .digits(_), .decimal(_):
657657
nil
658658
}
659659
}

Sources/SwiftCrossUI/Environment/EnvironmentValues.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ public struct EnvironmentValues {
3838
/// The scale factor of the current window.
3939
public var windowScaleFactor: Double
4040

41-
/// The type of on-screen keyboard to show when a text field is focused.
41+
/// The type of input that text fields represent.
42+
///
43+
/// This affects autocomplete suggestions, and on devices with no physical keyboard, which
44+
/// on-screen keyboard to use.
45+
///
46+
/// Do not use this in place of validation, even if you only plan on supporting mobile
47+
/// devices, as this does not restrict copy-paste and many mobile devices support bluetooth
48+
/// keyboards.
4249
public var textContentType: TextContentType
4350

4451
/// Called by view graph nodes when they resize due to an internal state

0 commit comments

Comments
 (0)