Frank пре 4 година
родитељ
комит
5a663d026e
3 измењених фајлова са 7 додато и 1 уклоњено
  1. 1 1
      MJRefresh.podspec
  2. 3 0
      MJRefresh/MJRefreshConst.h
  3. 3 0
      MJRefresh/MJRefreshConst.m

+ 1 - 1
MJRefresh.podspec

@@ -1,6 +1,6 @@
 Pod::Spec.new do |s|
     s.name         = 'MJRefresh'
-    s.version      = '3.6.0'
+    s.version      = '3.6.1'
     s.summary      = 'An easy way to use pull-to-refresh'
     s.homepage     = 'https://github.com/CoderMJLee/MJRefresh'
     s.license      = 'MIT'

+ 3 - 0
MJRefresh/MJRefreshConst.h

@@ -33,6 +33,9 @@ UIKIT_EXTERN const CGFloat MJRefreshLabelLeftInset;
 UIKIT_EXTERN const CGFloat MJRefreshHeaderHeight;
 UIKIT_EXTERN const CGFloat MJRefreshFooterHeight;
 UIKIT_EXTERN const CGFloat MJRefreshTrailWidth;
+UIKIT_EXTERN const CGFloat MJRefreshFastAnimationDuration;
+UIKIT_EXTERN const CGFloat MJRefreshSlowAnimationDuration;
+
 
 UIKIT_EXTERN NSString *const MJRefreshKeyPathContentOffset;
 UIKIT_EXTERN NSString *const MJRefreshKeyPathContentSize;

+ 3 - 0
MJRefresh/MJRefreshConst.m

@@ -5,6 +5,9 @@ const CGFloat MJRefreshLabelLeftInset = 25;
 const CGFloat MJRefreshHeaderHeight = 54.0;
 const CGFloat MJRefreshFooterHeight = 44.0;
 const CGFloat MJRefreshTrailWidth = 60.0;
+const CGFloat MJRefreshFastAnimationDuration = 0.25;
+const CGFloat MJRefreshSlowAnimationDuration = 0.4;
+
 
 NSString *const MJRefreshKeyPathContentOffset = @"contentOffset";
 NSString *const MJRefreshKeyPathContentInset = @"contentInset";