I use the screen size for some SwiftUI view layouts to adapt to various screen sizes. I have found that for some devices, such as the iPhone 13 mini, the screen size returned from UIScreen.main.bounds differs from the preview device and the simulator. Is this expected behavior?
SwiftUI preview device screen size differs from simulator
Add a Comment