Mijick / PopupView

Popups presentation made simple (SwiftUI)
MIT License
1.08k stars 42 forks source link

Crash while using Center Pop up on macOS #74

Closed RizwanaDesai closed 4 months ago

RizwanaDesai commented 4 months ago

App crashes when using center pop-up for macOS. Issue observed in demo app as well.

Screenshot 2024-03-12 at 6 02 25 PM
FulcrumOne commented 4 months ago

Hey @RizwanaDesai,

I just checked and it works for me (such a cliche sentence 😄). The error message from the image usually indicates some problem with Xcode - try to clean up & reload the project (even several times).

RizwanaDesai commented 4 months ago

Hey @FulcrumOne Appreciate your quick response. I tried after multiple clean-up and removed derived data as well but no luck. Still facing same crash. I'm using Xcode 15.1.

FulcrumOne commented 4 months ago

@RizwanaDesai Hmmm, and the problem only affects CentrePopups? What version of iOS do you use?

RizwanaDesai commented 4 months ago

@FulcrumOne Yes problem only affect CentrePopups. Right now integrated this for macOS app and my macOS version is 14.2

FulcrumOne commented 4 months ago

@RizwanaDesai You're right - seems that @State + AnyView combination doesn't work on macOS. I'll play with it and try to fix it using other methods, but if I can't get it to work in 1 hour, I'll push a temporary fix to a separate branch.

FulcrumOne commented 4 months ago

@RizwanaDesai The problem should disappear on the branch patch-2.2.4 Could you check it?

itsthisjustin commented 4 months ago

@FulcrumOne will check! Thanks for the quick reply.

RizwanaDesai commented 4 months ago

Yeah It's Fixed. Thanks a lot @FulcrumOne