Skip to content

Commit c811c32

Browse files
author
jinjiahui
committed
fix: 内容没有超过一个屏幕,触发footer的问题
1 parent 37d5a51 commit c811c32

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

ESPullToRefresh.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Pod::Spec.new do |s|
33
s.name = 'ESPullToRefresh'
4-
s.version = '2.9.1'
4+
s.version = '2.9.2'
55
s.summary = 'An easy way to use pull-to-refresh and loading-more'
66
s.description = 'An easiest way to give pull-to-refresh and loading-more to any UIScrollView. Using swift!'
77
s.homepage = 'https://github.com/eggswift/pull-to-refresh'

ESPullToRefreshExample/ESPullToRefreshExample.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -624,12 +624,12 @@
624624
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
625625
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
626626
CODE_SIGN_IDENTITY = "iPhone Developer";
627-
CURRENT_PROJECT_VERSION = 2.9.1;
627+
CURRENT_PROJECT_VERSION = 2.9.2;
628628
DEVELOPMENT_TEAM = A367N9R36B;
629629
INFOPLIST_FILE = ESPullToRefreshExample/Info.plist;
630630
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
631631
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
632-
MARKETING_VERSION = 2.9.1;
632+
MARKETING_VERSION = 2.9.2;
633633
PRODUCT_BUNDLE_IDENTIFIER = com.eggswift.ESPullToRefreshExample11;
634634
PRODUCT_NAME = Example;
635635
SWIFT_VERSION = 5.0;
@@ -642,12 +642,12 @@
642642
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
643643
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
644644
CODE_SIGN_IDENTITY = "iPhone Developer";
645-
CURRENT_PROJECT_VERSION = 2.9.1;
645+
CURRENT_PROJECT_VERSION = 2.9.2;
646646
DEVELOPMENT_TEAM = A367N9R36B;
647647
INFOPLIST_FILE = ESPullToRefreshExample/Info.plist;
648648
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
649649
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
650-
MARKETING_VERSION = 2.9.1;
650+
MARKETING_VERSION = 2.9.2;
651651
PRODUCT_BUNDLE_IDENTIFIER = com.eggswift.ESPullToRefreshExample11;
652652
PRODUCT_NAME = Example;
653653
SWIFT_VERSION = 5.0;

Sources/ESPullToRefresh.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ open class ESRefreshHeaderView: ESRefreshComponent {
321321
self.animator.refreshAnimationEnd(view: self)
322322

323323
// Back state
324+
scrollView.contentInset.top = self.scrollViewInsets.top
325+
scrollView.contentOffset.y = self.previousOffset
324326
UIView.animate(withDuration: 0.2, delay: 0, options: .curveLinear, animations: {
325327
scrollView.contentOffset.y = -self.scrollViewInsets.top
326328
}, completion: { (finished) in

0 commit comments

Comments
 (0)