      */
     @discardableResult
     public func withPresentation(_ presentation: UIModalPresentationStyle) -> Self {
-        modalPresentationStyle = presentation
+        self.modalPresentationStyle = presentation
         return self
     }
 

                popoverController?.sourceView = container
                popoverController?.sourceRect = frame ?? container.bounds
            }
            present(controller, animated: animated, completion: completion)

        case .push:
            if let nav = self as? UINavigationController {
                nav.push(controller, animated: animated, completion: completion)
            } else {
                navigationController!.push(controller, animated: animated, completion: completion)
            }

        case .show:
            assert(completion == nil, "Completion closure parameter is ignored for `.show`")
            show(controller, sender: self)

        case .showDetail(let navigation):
            assert(completion == nil, "Completion closure parameter is ignored for `.showDetail`")
            showDetailViewController(controller.withNavigationStyle(navigation), sender: self)

        case .custom(let delegate):
            controller.modalPresentationStyle = .custom
            controller.transitioningDelegate = delegate
            present(controller, animated: animated, completion: completion)

        case .none:
            present(controller, animated: animated, completion: completion)
        }
    }
}

     */
    @discardableResult
    public func withTransition(_ transition: UIModalTransitionStyle) -> Self {
        self.modalTransitionStyle = transition
        return self
    }

