Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes crash when adding custom UIButton subclass with clear color #302

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SWTableViewCell.podspec
Original file line number Diff line number Diff line change
@@ -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.'
Expand Down
4 changes: 3 additions & 1 deletion SWTableViewCell/PodFiles/SWUtilityButtonView.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}
}

Expand Down