Skip to content

Commit

Permalink
Added back floatingPanelDidViewLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
ramrcram committed Oct 11, 2023
1 parent 3989303 commit a90608c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Controller.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ import os.log
shouldAllowToScroll scrollView: UIScrollView,
in state: FloatingPanelState
) -> Bool

@objc(floatingPanelDidViewLayout:) optional
func floatingPanelDidViewLayout(_ vc: FloatingPanelController)
}

///
Expand Down Expand Up @@ -332,6 +335,7 @@ open class FloatingPanelController: UIViewController {
if contentMode == .static {
floatingPanel.layoutAdapter.updateStaticConstraint()
}
self.delegate?.floatingPanelDidViewLayout?(self)
}

open override func viewDidAppear(_ animated: Bool) {
Expand Down

0 comments on commit a90608c

Please sign in to comment.