m1entus / MZFormSheetPresentationController

MZFormSheetPresentationController provides an alternative to the native iOS UIModalPresentationFormSheet, adding support for iPhone and additional opportunities to setup UIPresentationController size and feel form sheet.
MIT License
973 stars 146 forks source link

How to make the modal background transparent. #57

Closed omarojo closed 8 years ago

omarojo commented 8 years ago

Is there a way to present a modal that instead of having a white background as it is by default. It has a transparent or blurred background ? currently the blurred option in MZ just blurs the outside background of the modal.

I intent to have a ViewController that is showing a camera feed, and I would like to present a modal on top of that, with blurred background so I can still see the camera refreshing in the back.

m1entus commented 8 years ago

Check the Objective-C example there is one case for that and probably you are interested to present using style: OverCurrentContext on MZFormSheet..

omarojo commented 8 years ago

Thanks, I ended up using the blurred effect, changed the size of the presented view controller, and setting to 0 the top inset. These are all MZForm settings. But indeed I need to configure the "overCurrentContext" of the presented view controller to have its background transparent as clear color.