SwiftUI - fullScreenCover not working on iOS 14.4.2

Viewed 636

I am new to swiftUI. I publish an app to the App Store it's working fine but some of iOS it isn't working properly. may be fullScreenCover not working that's way MathPlayingHistoryView not appearing when user tap on the refreshdButtonSmall() .bellow code.

   refreshdButtonSmall()
  .fullScreenCover(isPresented: self.$lovePresent) {
            MathPlayingHistoryView(isPresented: $lovePresent)
        }
     .onTapGesture{
          withAnimation(.spring(response:0.2,dampingFraction:0.5,blendDuration:0)){
             lovePresent.toggle()
          }
     }

Update:

public struct refreshdButtonSmall: View {
    var imageName = "star"

    public var body: some View {
        ZStack {
            Image(systemName: imageName)
                .font(.system(size: 30, weight: .bold))
                .foregroundColor(.black)
        }
    }
}

Device information: Divice : XR
iOS : 14.4.2

Would you help me to solve this problem.

0 Answers
Related