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
974 stars 145 forks source link

'MZFormSheetPresentationViewController' has no member 'shouldApplyBackgroundBlurEffect' #35

Closed mirzadelic closed 8 years ago

mirzadelic commented 8 years ago

Error:

Value of type 'MZFormSheetPresentationViewController' has no member 'shouldApplyBackgroundBlurEffect'

Code:

        let controller = self.storyboard!.instantiateViewControllerWithIdentifier("addArticleToGroup") as! AddArticleToGroupViewController
        controller.group = data
        let formSheetController = MZFormSheetPresentationViewController(contentViewController: controller)
        formSheetController.shouldApplyBackgroundBlurEffect = true // error here
        self.presentViewController(formSheetController, animated: true, completion: nil)
m1entus commented 8 years ago

Upgrade from 1.x

As a major version change, the API introduced in 2.0 is not backward compatible with 1.x integrations. Upgrading is straightforward.

Use MZFormSheetPresentationViewController instead of MZFormSheetPresentationController

MZFormSheetPresentationController now inherits from UIPresentationController and manage presentation of popup

-> MZFormSheetPresentationViewController have property presentationController which allows you customization presented content view

MZFormSheetPresentationController registerTransitionClass is now MZTransition registerTransitionClass

func entryFormSheetControllerTransition(formSheetController: MZFormSheetPresentationController, completionHandler: MZTransitionCompletionHandler) changed to func entryFormSheetControllerTransition(formSheetController: UIViewController, completionHandler: MZTransitionCompletionHandler) which formSheetController frame is equal to contentViewSize with view origin.