Skip to content
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v. 2.0.1
- `MGCDayPlannerView` :
- new property `dayHeaderTextColor`

## v. 2.0

- Deployment target is now iOS 8.0
Expand Down
4 changes: 2 additions & 2 deletions CalendarLib.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |s|
s.name = "CalendarLib"
s.version = "2.0"
s.version = "2.0.1"
s.summary = "A set of views and controllers for displaying and scheduling events on iOS"
s.homepage = "https://github.com/jumartin/Calendar"
s.license = "MIT"
s.author = { "Julien Martin" => "[email protected]" }
s.platform = :ios, "8.0"
s.source = { :git => "https://github.com/jumartin/Calendar.git", :tag => s.version.to_s }
s.source = { :git => "https://github.com/ATINO-GmbH/Calendar.git", :tag => s.version.to_s }
s.screenshots = [ "https://raw.githubusercontent.com/jumartin/Calendar/master/CalendarDocs/DayPlannerView.jpg", "https://raw.githubusercontent.com/jumartin/Calendar/master/CalendarDocs/MonthPlannerView.jpg", "https://raw.githubusercontent.com/jumartin/Calendar/master/CalendarDocs/YearView.jpg"]
s.source_files = "CalendarLib/**/*.{h,m}"
s.public_header_files = "CalendarLib/{MGCDateRange.h,NSCalendar+MGCAdditions.h,NSAttributedString+MGCAdditions.h,MGCDayPlannerEKViewController.h,MGCMonthPlannerEKViewController.h,MGCEventView.h,MGCStandardEventView.h,MGCDayPlannerView.h,MGCDayPlannerViewController.h,MGCMonthPlannerView.h,MGCMonthPlannerViewController.h,MGCMonthMiniCalendarView.h,MGCYearCalendarView.h,MGCReusableObjectQueue.h}"
Expand Down
7 changes: 7 additions & 0 deletions CalendarLib/MGCDayPlannerView.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ typedef NS_ENUM(NSUInteger, MGCDayPlannerTimeMark) {
*/
@property (nonatomic) CGFloat dayHeaderHeight;


/*
@abstract Returns the color of text of the top row showing days.
@discussion The default value is white.
*/
@property (nonatomic) UIColor *dayHeaderTextColor;

/*!
@abstract Returns the color of the vertical separator lines between days.
@discussion The default value is light gray.
Expand Down
8 changes: 7 additions & 1 deletion CalendarLib/MGCDayPlannerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -1841,7 +1841,13 @@ - (UICollectionViewCell*)dayColumnCellAtIndexPath:(NSIndexPath*)indexPath
if ([self.calendar mgc_isDate:date sameDayAsDate:[NSDate date]]) {
accessoryTypes |= MGCDayColumnCellAccessoryMark;
dayCell.markColor = self.tintColor;
color = [UIColor whiteColor];

if(self.dayHeaderTextColor){
color = self.dayHeaderTextColor;
}else{
color = [UIColor whiteColor];
}

font = [UIFont boldSystemFontOfSize:14];
}

Expand Down