Permalink
Browse files

Fixing Bug #39

Made ElasticModalViewController "open" so classes outside of its module
can subclass it
  • Loading branch information...
joelmbell committed Feb 25, 2017
1 parent 10c0d9e commit 49467f8ec35bf676f3fb7f7ac071db54d94933f8
Showing with 3 additions and 3 deletions.
  1. +3 −3 ElasticTransition/ElasticModalViewController.swift
@@ -8,7 +8,7 @@
import UIKit
public class ElasticModalViewController: UIViewController, ElasticMenuTransitionDelegate {
open class ElasticModalViewController: UIViewController, ElasticMenuTransitionDelegate {
public var dragDownTransformType:ElasticTransitionBackgroundTransform = .subtle
public var dragRightTransformType:ElasticTransitionBackgroundTransform = .translatePull
@@ -48,7 +48,7 @@ public class ElasticModalViewController: UIViewController, ElasticMenuTransition
modalPresentationStyle = .custom
}
public override func viewWillAppear(_ animated: Bool) {
open override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
leftDissmissPanGestureRecognizer.addTarget(self, action: #selector(handleLeftPan))
@@ -57,7 +57,7 @@ public class ElasticModalViewController: UIViewController, ElasticMenuTransition
modalTransition.foregroundExitPanGestureRecognizer.require(toFail: leftDissmissPanGestureRecognizer)
}
public override func viewDidAppear(_ animated: Bool) {
open override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
modalTransition.edge = .bottom
modalTransition.transformType = dragDownTransformType

0 comments on commit 49467f8

Please sign in to comment.