Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #289 from GotEmB/master
Browse files Browse the repository at this point in the history
Animate `scrollView.scrollIndicatorInsets`
  • Loading branch information
Kimon Tsinteris committed Nov 13, 2015
2 parents 0f3a634 + ebf5e3d commit c0792fd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions pop/POPAnimatableProperty.h
Expand Up @@ -160,6 +160,7 @@ extern NSString * const kPOPScrollViewContentOffset;
extern NSString * const kPOPScrollViewContentSize;
extern NSString * const kPOPScrollViewZoomScale;
extern NSString * const kPOPScrollViewContentInset;
extern NSString * const kPOPScrollViewScrollIndicatorInsets;

/**
Common UITableView property names.
Expand Down
14 changes: 14 additions & 0 deletions pop/POPAnimatableProperty.mm
Expand Up @@ -88,6 +88,7 @@
NSString * const kPOPScrollViewContentSize = @"scrollView.contentSize";
NSString * const kPOPScrollViewZoomScale = @"scrollView.zoomScale";
NSString * const kPOPScrollViewContentInset = @"scrollView.contentInset";
NSString * const kPOPScrollViewScrollIndicatorInsets = @"scrollView.scrollIndicatorInsets";

// UITableView
NSString * const kPOPTableViewContentOffset = kPOPScrollViewContentOffset;
Expand Down Expand Up @@ -697,6 +698,19 @@
kPOPThresholdPoint
},

{kPOPScrollViewScrollIndicatorInsets,
^(UIScrollView *obj, CGFloat values[]) {
values[0] = obj.scrollIndicatorInsets.top;
values[1] = obj.scrollIndicatorInsets.left;
values[2] = obj.scrollIndicatorInsets.bottom;
values[3] = obj.scrollIndicatorInsets.right;
},
^(UIScrollView *obj, const CGFloat values[]) {
obj.scrollIndicatorInsets = values_to_edge_insets(values);
},
kPOPThresholdPoint
},

/* UINavigationBar */

{kPOPNavigationBarBarTintColor,
Expand Down

0 comments on commit c0792fd

Please sign in to comment.