diff --git a/SWTableViewCell.podspec b/SWTableViewCell.podspec index a2291dc..524519e 100644 --- a/SWTableViewCell.podspec +++ b/SWTableViewCell.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'SWTableViewCell' - s.version = '0.3.7' + s.version = '0.3.9' s.author = { 'Chris Wendel' => 'chriwend@umich.edu' } s.homepage = 'https://github.com/CEWendel/SWTableViewCell' s.summary = 'UITableViewCell subclass that implements a swipeable content view which exposes utility buttons.' diff --git a/SWTableViewCell/PodFiles/SWUtilityButtonView.m b/SWTableViewCell/PodFiles/SWUtilityButtonView.m index c36908f..eaa7fa0 100644 --- a/SWTableViewCell/PodFiles/SWUtilityButtonView.m +++ b/SWTableViewCell/PodFiles/SWUtilityButtonView.m @@ -132,7 +132,9 @@ - (void)pushBackgroundColors for (UIButton *button in self.utilityButtons) { - [self.buttonBackgroundColors addObject:button.backgroundColor]; + if (button.backgroundColor) { + [self.buttonBackgroundColors addObject:button.backgroundColor]; + } } }