diff --git a/pop/POPAnimatableProperty.h b/pop/POPAnimatableProperty.h index 172411b5..4b5cec9c 100644 --- a/pop/POPAnimatableProperty.h +++ b/pop/POPAnimatableProperty.h @@ -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. diff --git a/pop/POPAnimatableProperty.mm b/pop/POPAnimatableProperty.mm index 939b6211..91fd90a0 100644 --- a/pop/POPAnimatableProperty.mm +++ b/pop/POPAnimatableProperty.mm @@ -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; @@ -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,