Skip to content

Commit

Permalink
Make isDraggable property public
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdelgado committed Jun 28, 2022
1 parent f790a9f commit 9789f98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class HeightConstraintOverlayTranslationController: OverlayTranslationController

private let configuration: OverlayContainerConfiguration
private let translationHeightConstraint: NSLayoutConstraint
private var isDragging = false
var isDragging = false

// MARK: - Life Cycle

Expand Down
4 changes: 4 additions & 0 deletions Source/Classes/OverlayContainerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ open class OverlayContainerViewController: UIViewController {
// See issue #72
private var isPresentedInsideAnOverlayContainerPresentationController = false

public var isDragging: Bool {
return translationController?.isDragging ?? false
}

// MARK: - Life Cycle

/// Creates an instance with the specified `style`.
Expand Down

0 comments on commit 9789f98

Please sign in to comment.