Skip to content

Commit

Permalink
Format some code
Browse files Browse the repository at this point in the history
  • Loading branch information
scenee committed Oct 13, 2022
1 parent 0081214 commit 5b41bfb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Sources/Controller.swift
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,10 @@ open class FloatingPanelController: UIViewController {
}

private func activateLayout(forceLayout: Bool = false) {
floatingPanel.activateLayout(forceLayout: forceLayout,
contentInsetAdjustmentBehavior: contentInsetAdjustmentBehavior)
floatingPanel.activateLayout(
forceLayout: forceLayout,
contentInsetAdjustmentBehavior: contentInsetAdjustmentBehavior
)
}

func remove() {
Expand Down
6 changes: 4 additions & 2 deletions Sources/Core.swift
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,10 @@ class Core: NSObject, UIGestureRecognizerDelegate {

// MARK: - Layout update

func activateLayout(forceLayout: Bool = false,
contentInsetAdjustmentBehavior: FloatingPanelController.ContentInsetAdjustmentBehavior) {
func activateLayout(
forceLayout: Bool = false,
contentInsetAdjustmentBehavior: FloatingPanelController.ContentInsetAdjustmentBehavior
) {
layoutAdapter.prepareLayout()

// preserve the current content offset if contentInsetAdjustmentBehavior is `.always`
Expand Down

0 comments on commit 5b41bfb

Please sign in to comment.