fullScreenCover does not work correctly on iOS 14.1 ~ 14.4

When the modifier of fullscreencover is used continuously in iOS14, one of the fullscreencovers is not displayed.

// SOMEView2 not working
content
    .fullScreenCover(isPresented: $isPresente1, content: { SOMEView() })
    .fullScreenCover(isPresented: $isPresente2, content: { SOMEView2() })

We are investigating which OS is causing this issue. Has anyone else experienced a similar issue? If so, can you tell us if it is occurring on iOS 14.5.0?

OS on which the problem occurs It occurs on iOS14.1 ~ 14.4. It does not occur on iOS 14.5.1.

Accepted Answer

Well both can't be presented at the same time. When $isPresente1 is set true always set $isPresente2 to false and vice versa. The correct thing to will be to use only one fullScreenCover and based on some other state show the appropriate view.

Something like below but you will have to work out the details.

content
    .fullScreenCover(isPresented: $isPresente1 || $isPresente2, content: { 
      if isPresente1 {
           return SOMEView() 
      } else if isPresente2  {
          return SomeView2()
      } else { EmptyView() }
})

fullScreenCover does not work correctly on iOS 14.1 ~ 14.4
 
 
Q