'Is it normal to have a slight delay in showing a sheet in SwiftUI? [closed]

I'm working on a very simple SwiftUI app, and when I run it as an iPad app running on my mac, there's a very noticable delay when displaying a sheet. I.e. maybe 1 second. I would expect this action to be instant.

Is this performance expected, or is it something I should look for a way to optimize?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source