From 248b2cbe5a9bd22b2c6f2591f7eb23a94d3bcbf9 Mon Sep 17 00:00:00 2001 From: Skye Book Date: Thu, 12 Oct 2017 17:11:41 -0400 Subject: [PATCH] deledate -> delegate --- Sources/PagerTabStripViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/PagerTabStripViewController.swift b/Sources/PagerTabStripViewController.swift index 01ae69d9..6ae787fe 100644 --- a/Sources/PagerTabStripViewController.swift +++ b/Sources/PagerTabStripViewController.swift @@ -271,10 +271,10 @@ open class PagerTabStripViewController: UIViewController, UIScrollViewDelegate { preCurrentIndex = currentIndex let changeCurrentIndex = newCurrentIndex != oldCurrentIndex - if let progressiveDeledate = self as? PagerTabStripIsProgressiveDelegate, pagerBehaviour.isProgressiveIndicator { + if let progressiveDelegate = self as? PagerTabStripIsProgressiveDelegate, pagerBehaviour.isProgressiveIndicator { let (fromIndex, toIndex, scrollPercentage) = progressiveIndicatorData(virtualPage) - progressiveDeledate.updateIndicator(for: self, fromIndex: fromIndex, toIndex: toIndex, withProgressPercentage: scrollPercentage, indexWasChanged: changeCurrentIndex) + progressiveDelegate.updateIndicator(for: self, fromIndex: fromIndex, toIndex: toIndex, withProgressPercentage: scrollPercentage, indexWasChanged: changeCurrentIndex) } else { delegate?.updateIndicator(for: self, fromIndex: min(oldCurrentIndex, pagerViewControllers.count - 1), toIndex: newCurrentIndex) }