I tried to implement presenting modal view controller on the other viewcontroller sized to half parent view controller.
Present modal view controller in half size
when i run this error is show :
fatal error: unexpectedly found nil while unwrapping an Optional value (lldb)
the code problem ?
func presentationControllerForPresentedViewController(presented: UIViewController, presentingViewController presenting: UIViewController, sourceViewController source: UIViewController) -> UIPresentationController? {
return HalfSizePresentationController(presentedViewController: presented, presentingViewController: presentingViewController!)
}