PaoloCuscela / Cards

Awesome iOS 11 appstore cards in swift 5.
MIT License
4.2k stars 274 forks source link

New update turns the view black after closing the view #135

Open asbis opened 4 years ago

asbis commented 4 years ago

Hi

I just updated my app with the newest update to this project. Now, when i close a card, the screen turns black.

I also tried it with the demo app, and it also turns itself black. I am looking into the issue. And will post update as soon as i have found the bug. But if you have found it, let me know.

ghost commented 4 years ago

Check out bug #131 && #121

find shouldPresent function and I replace detailVC.isFullscreen = fullscreen with detailVC.modalPresentationStyle = .fullScreen

coderluka commented 3 years ago

can confirm this solved the problem. still had it in iOS 14 Thanks!

Dreamer4ik commented 2 years ago

In the function "shouldPresent" of file Card.swift add the following code: under detailVC.isFullscreen = fullscreen need add if fullscreen { detailVC.modalPresentationStyle = .fullScreen } else { detailVC.modalPresentationStyle = .currentContext }

it worked for me