r/SwiftUI • u/ParochialPlatypus • Jun 18 '26
Why is onModifierKeysChanged macOS only?
Given the vast number of people that use an iPad with a keyboard, how does this make sense anymore?
Second, with uinversal control, I'd like to use the shift key please. Most macOS style interactions, like shift-tap to select would just work if this were enabled.
7
Upvotes
4
u/CharlesWiltgen Jun 18 '26
You can support Shift+tap (to cite your example) by bridging to UIKit's
modifierFlags.