Skip to content

Commit 14558b0

Browse files
author
Adrian Schoenig
committed
Fix for changes to background and tint color not being applied
1 parent 64ffd32 commit 14558b0

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

ASWeekSelectorView.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "ASWeekSelectorView"
3-
s.version = "1.0.2"
3+
s.version = "1.0.3"
44
s.summary = "iOS calendar-inspired simple mini week view to select swipe through weeks and tap on days"
55
s.description = <<-DESC
66
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.

Classes/ASWeekSelectorView.m

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,21 @@ - (void)setFrame:(CGRect)frame
138138
self.isSettingFrame = NO;
139139
}
140140

141+
- (void)setSelectorBackgroundColor:(UIColor *)selectorBackgroundColor
142+
{
143+
_selectorBackgroundColor = selectorBackgroundColor;
144+
145+
self.selectionView.backgroundColor = selectorBackgroundColor;
146+
}
147+
148+
- (void)setTintColor:(UIColor *)tintColor
149+
{
150+
[super setTintColor:tintColor];
151+
152+
self.selectionView.circleColor = self.tintColor;
153+
self.todayView.circleColor = self.tintColor;
154+
}
155+
141156
#pragma mark - UIScrollViewDelegate
142157

143158
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView

0 commit comments

Comments
 (0)