Detect hardware keyboard with SwiftUI

In an application we are developing, we would like to show a (non-interactable) textfield when a hardware keyboard is connected to the iPad.

Therefore my question:

Using SwiftUI, is it possible to detect the presence of a hardware keyboard and store that state inside a boolean like isHardwareKeyboardConnected?

Detect hardware keyboard with SwiftUI
 
 
Q