Skip to content

Commit 31c9f78

Browse files
committed
App and Environment: avoid a deprecation warning
Replace `.pad` with `.tablet`. NFC
1 parent dcd98cd commit 31c9f78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftWin32/App and Environment/TraitCollection.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private func GetCurrentColorScheme() -> UserInterfaceStyle {
198198
}
199199

200200
private func GetCurrentDeviceFamily() -> UserInterfaceIdiom {
201-
return GetSystemMetrics(SM_TABLETPC) == 0 ? .unspecified : .pad
201+
return GetSystemMetrics(SM_TABLETPC) == 0 ? .unspecified : .tablet
202202
}
203203

204204
private func GetCurrentAccessibilityContrast() -> AccessibilityContrast {

0 commit comments

Comments
 (0)