@ichi.mf sorry for the late reply. I used INRelevantShortcut.
The implementation is almost the same as here:
https://developer.apple.com/videos/play/wwdc2021/10049/
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: