If you use `presentationBackground` with a solid color, the system removes the glassy sheet background. And once that happens, all glass content on top of the sheet becomes fully glass instead of translucent.
Yea those separators looks awful now.
Think I was having to use .presentationBackground(.clear) on iOS 26.0 to get a glass background. But seems it’s for free now.
Nope. Using `.presentationBackground(.clear)` didn't work for removing the glass effect in 26.0.
This might have changed in 26.1 given that this behaviour is now supported in UIKit as official API.
Anyone know how to remove the default glass effect sheet background in ios26?
Was previously using .presentationBackground(.clear) but looks like that broke in ios26 :(
tried and true recipe for simulator death 👨🍳
ingredients:
- ios 17.0
- .presentationBackground
- .photosPicker (any flavor)
mix together and serve immediately to your unsuspecting simulator. pairs well with tears and stackoverflow searches
I need .scrollContentBackground(.hidden) to get the glass effect when the sheet is small and the WWDC session I referenced discourages the use of .presentationBackground 😕
The .presentationBackground(_:) modifier is only applicable to modals so it won’t work with navigation stack.
Unless there’s something similar for a navigation detail you’ll have to use modals which anyway I feel is the right choice for these kinda views.
Have you tried presentationBackground(_:) with a clear color?
Not sure if this API is relevant actually when using transition.
developer.apple.com/document…
presentationBackground(alignment:content:)
のalignmentのところに
The alignment that the modifier uses to position the implicit ZStack that groups the background views.
って書いてあってへぇーってなってる。
developer.apple.com/document…#SwiftUI