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

            return self

        case .withNavigation:
            return withNavigation()
        }
    }


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

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

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

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

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

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