Chapter 7 Checkerboard fragment

Running or previewing your code on iOS, I get what you get:

Running identical code on macOS, I also get:

But previewing on macOS, I get

It’s as if the preview does not know that the MacBook Pro has a 2x Retina display. Can I fix that?

I don’t think that there’s anything we can do about that. It’s weird. And one of the reasons that I generally build and run rather than use SwiftUI Preview which does tend to have oddities.

1 Like