Skip to content

Commit

Permalink
add tappable property
Browse files Browse the repository at this point in the history
  • Loading branch information
daisuke310vvv committed Feb 24, 2016
1 parent 77e977e commit f4dd278
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/PopupController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public class PopupController: UIViewController {
// MARK: - Public variables
public var popupView: UIView!
public var scrollable: Bool = true
public var tappable: Bool = true
public var layout: PopupLayout = .Center
public var animation: PopupAnimation = .SlideUp
public var movesAlongWithKeyboard: Bool = true
Expand Down Expand Up @@ -200,6 +201,7 @@ private extension PopupController {
}

func registerTapGesture() {
guard tappable else { return }
let gestureRecognizer = UITapGestureRecognizer(target: self, action: Selector("didTapGesture:"))
gestureRecognizer.delegate = self
baseScrollView.addGestureRecognizer(gestureRecognizer)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public var layout: PopupLayout // default is .Center, [.Top/.Center/.Botto
public var animation: PopupAnimation // default is .SlideUp, [.Slideup/.FadeIn]
public var backgroundStyle: PopupBackgroundStyle // default is .BlackFilter(alpha: 0.4) [BlackFilter(alpha: CGFloat)/Blur]
public var scrollable: Bool // default is true
public var tappable: Bool // default is true
public var movesAlongWithKeyboard: Bool // default is true
```

Expand Down

0 comments on commit f4dd278

Please sign in to comment.