Override show(_:sender:) of UIViewController freezes the UI

I can't override the show(_:sender:) of UIViewController or else my app freezes when the method is called (Xcode 15.3 simulator, iOS 17.4, macOS Sonoma 14.3.1, MacBook Air M1 8GB).

Is there any workaround?

override func show(_ vc: UIViewController, sender: Any?) {
    super.show(vc, sender: sender)
}