From 0088e4d9d5e8841c92fbc7b0109841ac78fe9b2f Mon Sep 17 00:00:00 2001 From: Stephenie Harris Date: Wed, 11 Mar 2020 14:15:51 -0600 Subject: [PATCH] Allow customizing action bar background color. --- Pod/Classes/WPActionBar.h | 5 +++++ Pod/Classes/WPActionBar.m | 10 ++++++++++ WPMediaPicker.podspec | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Pod/Classes/WPActionBar.h b/Pod/Classes/WPActionBar.h index 718dabe8..20a7b14e 100644 --- a/Pod/Classes/WPActionBar.h +++ b/Pod/Classes/WPActionBar.h @@ -7,6 +7,11 @@ */ @property (nonatomic, strong) UIColor *lineColor UI_APPEARANCE_SELECTOR; +/** +The color for the action bar background. +*/ +@property (nonatomic, strong) UIColor *barBackgroundColor UI_APPEARANCE_SELECTOR; + /** Adds the given button to the left side of the bar diff --git a/Pod/Classes/WPActionBar.m b/Pod/Classes/WPActionBar.m index f64e777b..afc3dd83 100644 --- a/Pod/Classes/WPActionBar.m +++ b/Pod/Classes/WPActionBar.m @@ -83,6 +83,16 @@ - (UIStackView *)stackView #pragma mark - public methods +- (UIColor *)barBackgroundColor +{ + return self.backgroundColor; +} + +- (void)setBarBackgroundColor:(UIColor *)barBackgroundColor +{ + self.backgroundColor = barBackgroundColor; +} + - (UIColor *)lineColor { return self.lineView.backgroundColor; diff --git a/WPMediaPicker.podspec b/WPMediaPicker.podspec index fc5804b3..920af26d 100644 --- a/WPMediaPicker.podspec +++ b/WPMediaPicker.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "WPMediaPicker" - s.version = "1.6.0" + s.version = "1.6.1-beta.1" s.summary = "WPMediaPicker is an iOS controller that allows capture and picking of media assets." s.description = <<-DESC WPMediaPicker is an iOS controller that allows capture and picking of media assets.