Skip to content

Commit

Permalink
Merge branch 'nicopasso-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimon Tsinteris committed May 1, 2014
2 parents 3127156 + cb386ff commit 046da74
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
4 changes: 4 additions & 0 deletions pop/POPAnimatableProperty.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,9 @@ extern NSString * const kPOPScrollViewContentSize;
extern NSString * const kPOPTableViewContentOffset;
extern NSString * const kPOPTableViewContentSize;

/**
Common UINavigationBar property names.
*/
extern NSString * const kPOPNavigationBarBarTintColor;

#endif
17 changes: 15 additions & 2 deletions pop/POPAnimatableProperty.mm
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
#import <POP/POPLayerExtras.h>

#if TARGET_OS_IPHONE
#import <UIKit/UIView.h>
#import <UIKit/UIScrollView.h>
#import <UIKit/UIKit.h>
#else
#import <AppKit/NSLayoutConstraint.h>
#endif
Expand Down Expand Up @@ -70,6 +69,8 @@
NSString * const kPOPTableViewContentOffset = kPOPScrollViewContentOffset;
NSString * const kPOPTableViewContentSize = kPOPScrollViewContentSize;

NSString * const kPOPNavigationBarBarTintColor = @"barTintColor";

/**
State structure internal to static animatable property.
*/
Expand Down Expand Up @@ -453,6 +454,18 @@
},
1.0
},

/* UINavigationBar */

{kPOPNavigationBarBarTintColor,
^(UINavigationBar *obj, CGFloat values[]) {
POPUIColorGetRGBAComponents(obj.barTintColor, values);
},
^(UINavigationBar *obj, const CGFloat values[]) {
obj.barTintColor = POPUIColorRGBACreate(values);
},
1.0
}

#endif

Expand Down

0 comments on commit 046da74

Please sign in to comment.