Closed pushchris closed 6 years ago
Hey @pushchris, just to be sure: You are calling PopupDialog from the main thread, don't you? Can you replicate that with the PopupDialog example project as well?
Other than that, thanks for the PR, I will have to have a close look asap. As this introduces breaking changes, it requires a major version bump and updated documentation. There's 7000 apps using this pod by now, so I don't want to make the transition too painful ;)
Also, I did move away from the visual effect views very early, as the blur radius is massive. :(
@mwfire yes, everything is being called from the main thread. In the example project, if you go into the AppDelegate and uncomment the following lines: https://github.com/Orderella/PopupDialog/blob/355e048e5711dd98acb505407adba8fd0f2d0c48/Example/PopupDialog/AppDelegate.swift#L52-L58
Mainly just the liveBlur variable is needed, but that will cause the error mentioned.
As for the blur radius being so large, there are a couple of examples out there of how to set a custom radius for UIVisualEffectView (https://github.com/ML-Works/Bluuur) but you are right, it is a little dramatic.
@pushchris, thanks a lot! I'll dive into this and update you asap. Thanks 👍
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Report
Environment
Please provide information on your development environment, so we can build with the same scenario.
Dependency management
What did you do?
Called up a dialog with background blur
What did you expect to happen?
The dialog to appear without any errors.
What happened instead?
While running the app inside of iOS11 with Swift 4 on an iPhone X the dialog appears, but throws the following errors:
This issue appears to directly correlate with https://github.com/nicklockwood/FXBlurView/issues/143 which reports the same behavior. Is there a reason at this point for continuing to use FXBlurView to handle the blur instead of just using a native blur element?