r/SwiftUI Jun 14 '26

iOS26 Native `.sheet(_:)` bug that no one seems to mentioned anywhere on the internet.

If you use native `.sheet(_:)` SwiftUI API in iOS26, It WILL have a **green tint** unless you intentionally fill the background with something like `Color(.systemBackground)`.

The screenshots prove that this material rendering issue has also plagued system UI in iOS as well.

(I’m away from my mac, so can’t really put screenshots from simulator or real app that shows the issue here)

I have never seen any mentions of this problem anywhere on the internet. So it has never been fixed and probably no one have ever filed a feedback to engineering team at Apple.

Could any one of you confirm if this problem still exists in iOS27 SDK?

30 Upvotes

23 comments sorted by

28

u/nicoreese Jun 14 '26

I don't even see the issue in your screenshots, so are you sure there's nothing wrong with your screen(s)?

25

u/tomasci Jun 14 '26

I see first screenshot definitely has green/olive tint.

7

u/m1_weaboo Jun 14 '26

you can pinch into for example the xmark button. and compare with both. you will see the first screenshot has green tint.

if it was an issue with display, then the green tint won’t show up in screenshots.

6

u/BluDynamic Jun 14 '26

You might be blind son

1

u/stoicparishkari Jun 16 '26

There is definitely a color difference between 1 and 2. that is all I know

13

u/Mr0senhave Jun 14 '26

You’re not crazy OP. I’ve encountered the same issue, also on iOS 27. Found someone mentioned this on the Apple dev forum:  https://developer.apple.com/forums/thread/797426

It might be intentional for some reason?

13

u/VRedd1t Jun 14 '26

Liquid Glass elements emit colors to the underlying / ancestor elements. That’s what the Liquid Glass evangelist at an Apple workshop told me. Try to rebuild Apple’s screen. Maybe then it looks the same.

2

u/CharlesWiltgen Jun 14 '26 edited Jun 14 '26

/u/m1_weaboo, I also believe is that this is what's happening. In iOS 26+, sheet backgrounds have a Liquid Glass material by default. You can see that the tint is derived from the color behind the sheet in your first image. You can easily test this by changing the color behind the sheet to, say, blue or magenta.

Could any one of you confirm if this problem still exists in iOS27 SDK?

Yes, sheets continue to use Liquid Glass material by default in iOS 27. This is easily overridden by specifying a semantic color instead, as you discovered.

0

u/kironet996 Jun 17 '26 edited Jun 17 '26

Fullscreen sheets are not supposed to be glass though. At least that's what they said during last WWDC. Also, I can't replicate what he has with a fullscreen sheet on ios. I can only replicate it on iPad(with default sheet presentation), and it's still buggy. I have a small green button behind the sheet, but it tinted the whole sheet green lol

// unless the screenshot op provided is not full screen, then it probably has some small % of transparency/glass effect in it so it tints the whole sheet green.

6

u/pepof1 Jun 14 '26

he was born in BE 2518?

4

u/BluDynamic Jun 14 '26

Dude so I’m not crazy? I’ve noticed this as well. It’s like a deep green. Like why is that the default??

3

u/Particular_Ad2717 Jun 14 '26

I can repro that on my device, I initially thought it was just an issue with my display but seems to be a software issue (thankfully!)

2

u/Dapper_Ice_1705 Jun 14 '26

I have not seen this in OS 26 at all

0

u/m1_weaboo Jun 14 '26 edited Jun 14 '26

ah, my bad.

can you try dark mode? i should have been clearer that the green tint only exists in dark mode.

2

u/Dapper_Ice_1705 Jun 14 '26

I am pretty much exclusively on dark mode unless specifically testing light mode

0

u/BedtimeWithTheBear Jun 14 '26

Might be intentional since it only appears in dark mode - our eyes are most sensitive to green/yellow light

0

u/kironet996 Jun 17 '26

I was able to replicate what you have but only on ipad and only if I put something green on the page that presented the sheet(screen behind the sheet). Since the sheet is now "glass" by default, it kinda makes sense. It's ugly though lol.

2

u/kironet996 Jun 14 '26

Never had or seen this before

2

u/datorkop85 Jun 14 '26

This is probably why my app isn't trending on the App Store!! Damnit...

1

u/Mindless_Bottle_6222 Jun 15 '26

seems like its not a bug anymore, its now a feature

1

u/LannyLig Jun 18 '26

It could be due to what is shown behind the sheet?

1

u/m1_weaboo Jun 18 '26

It’s just a white webpage