We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e8788e3 + 5f9c142 commit b22527dCopy full SHA for b22527d
.DS_Store
0 Bytes
Source/Transition.swift
@@ -48,6 +48,19 @@ open class PresentTransition: Transition {
48
}
49
50
51
+open class PresentTransitionWithoutAnimation: Transition {
52
+
53
+ private var controllerToPresent: () -> UIViewController
54
55
+ public init(controllerToPresent: @escaping () -> UIViewController) {
56
+ self.controllerToPresent = controllerToPresent
57
+ }
58
59
+ public func perform(on vc: UIViewController) {
60
+ vc.present(controllerToPresent(), animated: false)
61
62
+}
63
64
open class PopTransition: Transition {
65
public func perform(on vc: UIViewController) {
66
vc.navigationController?.popViewController(animated: true)
0 commit comments