Huge UI difference between Simulator and Real Device

Hi everyone,

I’m testing our SwiftUI app on both Xcode simulator and a real iPhone. On the simulator, everything looks clean and aligned. But when I run it on an actual iPhone (same build, iOS 18), the layout looks broken—fonts overlap, spacing is off, and elements are misaligned.

Both screenshots are from the exact same screen and time. First is simulator, second is iPhone.

Any idea why this difference happens? Is there something I should check in terms of rendering or layout settings?

Thanks in advance!

Answered by CoolMAK in 852928022

I figured out the what the issue is. I have enabled "Button Shapes" in Settings>Accessibility>Display & Text Size. This will enforce the shadows around buttons that cause this problem.

Accepted Answer

I figured out the what the issue is. I have enabled "Button Shapes" in Settings>Accessibility>Display & Text Size. This will enforce the shadows around buttons that cause this problem.

Huge UI difference between Simulator and Real Device
 
 
Q