From 49e8545aec2d074e38628a3c9ec166baf92c5f7e Mon Sep 17 00:00:00 2001 From: Shin Yamamoto Date: Sat, 6 Jun 2020 13:51:59 +0900 Subject: [PATCH] Rename trackedScrollView to trackingSrollView --- Examples/Samples/Sources/ViewController.swift | 6 +++--- Framework/Sources/FloatingPanelController.swift | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Examples/Samples/Sources/ViewController.swift b/Examples/Samples/Sources/ViewController.swift index 4d9f7ec..62f82d4 100644 --- a/Examples/Samples/Sources/ViewController.swift +++ b/Examples/Samples/Sources/ViewController.swift @@ -404,12 +404,12 @@ extension SampleListViewController: UITableViewDelegate { } extension SampleListViewController: FloatingPanelControllerDelegate { - func floatingPanel(_ vc: FloatingPanelController, contentOffsetForPinning trackedScrollView: UIScrollView) -> CGPoint { + func floatingPanel(_ vc: FloatingPanelController, contentOffsetForPinning trackingScrollView: UIScrollView) -> CGPoint { if currentMenu == .showNavigationController, #available(iOSApplicationExtension 11.0, *) { // 148.0 is the SafeArea's top value for a navigation bar with a large title. - return CGPoint(x: 0.0, y: 0.0 - trackedScrollView.contentInset.top - 148.0) + return CGPoint(x: 0.0, y: 0.0 - trackingScrollView.contentInset.top - 148.0) } - return CGPoint(x: 0.0, y: 0.0 - trackedScrollView.contentInset.top) + return CGPoint(x: 0.0, y: 0.0 - trackingScrollView.contentInset.top) } func floatingPanel(_ vc: FloatingPanelController, layoutFor newCollection: UITraitCollection) -> FloatingPanelLayout? { diff --git a/Framework/Sources/FloatingPanelController.swift b/Framework/Sources/FloatingPanelController.swift index f8d3e9e..3c4f0d5 100644 --- a/Framework/Sources/FloatingPanelController.swift +++ b/Framework/Sources/FloatingPanelController.swift @@ -45,7 +45,7 @@ public protocol FloatingPanelControllerDelegate: class { /// title, for example. /// /// This method will not be called if the controller doesn't track any scroll view. - func floatingPanel(_ vc: FloatingPanelController, contentOffsetForPinning trackedScrollView: UIScrollView) -> CGPoint + func floatingPanel(_ fpc: FloatingPanelController, contentOffsetForPinning trackingScrollView: UIScrollView) -> CGPoint } public extension FloatingPanelControllerDelegate {