View.popover(isPresented:) does not show up above TabView on iOS 18

Hello!

I wanted to bring up an issue I've encountered with .popover(isPresented:). It does not show up above a TabView on iOS 18. This issue occurs on an iPad or on an iPhone when using the .popover compact adaptation modifier.

(Xcode 16 beta 6 + iOS 18 beta 7)

Answered by Gong in 801089022

Update

Moving the .popover(isPresented:) insides TabView works around the issue.

Update

Moving the .popover(isPresented:) insides TabView works around the issue.

I think this should be reported as a bug. .popover is a modifier on the TabView, and your app builds correctly when it's written as it is in your screenshot. Moving it inside the TabView means you're modifying, in your example, the VStack?

You should probably raise this as a bug in the usual way at https://feedbackassistant.apple.com/

View.popover(isPresented:) does not show up above TabView on iOS 18
 
 
Q