Skip to content

Commit

Permalink
Fix for changes to background and tint color not being applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Schoenig committed Feb 1, 2018
1 parent 64ffd32 commit 14558b0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ASWeekSelectorView.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "ASWeekSelectorView"
s.version = "1.0.2"
s.version = "1.0.3"
s.summary = "iOS calendar-inspired simple mini week view to select swipe through weeks and tap on days"
s.description = <<-DESC
A mini week view to select a day. You can swipe through weeks and tap on days to select them, somewhat similar to the iOS 7 calendar app.
Expand Down
15 changes: 15 additions & 0 deletions Classes/ASWeekSelectorView.m
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,21 @@ - (void)setFrame:(CGRect)frame
self.isSettingFrame = NO;
}

- (void)setSelectorBackgroundColor:(UIColor *)selectorBackgroundColor
{
_selectorBackgroundColor = selectorBackgroundColor;

self.selectionView.backgroundColor = selectorBackgroundColor;
}

- (void)setTintColor:(UIColor *)tintColor
{
[super setTintColor:tintColor];

self.selectionView.circleColor = self.tintColor;
self.todayView.circleColor = self.tintColor;
}

#pragma mark - UIScrollViewDelegate

- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
Expand Down

0 comments on commit 14558b0

Please sign in to comment.