From 5b41bfb6627b218e241f820f20fc2bd8411ed05f Mon Sep 17 00:00:00 2001 From: Shin Yamamoto Date: Thu, 13 Oct 2022 12:49:08 +0900 Subject: [PATCH] Format some code --- Sources/Controller.swift | 6 ++++-- Sources/Core.swift | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Sources/Controller.swift b/Sources/Controller.swift index 45bedaa7..3e53e6eb 100644 --- a/Sources/Controller.swift +++ b/Sources/Controller.swift @@ -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() { diff --git a/Sources/Core.swift b/Sources/Core.swift index 1a2b49dd..9ca7781e 100644 --- a/Sources/Core.swift +++ b/Sources/Core.swift @@ -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`