-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Is there a way of minimizing the distance between the event indicator and the day of the month? #309
Comments
Hi @Archivus . Thanks for reaching out. U can define the event colors in - (NSArray *)calendar:(FSCalendar *)calendar appearance:(FSCalendarAppearance *)appearance eventColorsForDate:(NSDate *)date
{
if (condition1) {
return @[color1,color2,color3];
} else if (condition2) {
return @[color4,color5,color6];
}
return nil;
} And when your condition is changed from [self.calendar.appearance invalidateAppearance]; Hope this will help solve the problem. |
That's not what I meant. The little indicator that shows the presence of an event is too far down, almost closer to the event under it. Would it be possible to provide a function to make that distance smaller? |
Yes, the event indicator is right in the middle between it's date and the day under it. The only way to know it's under the date is looking at the last dates and check it. Here, I know the event indicator goes below it's date only because the last date in the column (july 6th) has an indicator, otherwise I could think it's on top of each date |
U r right guys, maybe a |
Sorry for the late. These functions has been added into /**
* Asks the delegate for an offset for day text for the specific date.
*/
- (CGPoint)calendar:(FSCalendar *)calendar appearance:(FSCalendarAppearance *)appearance titleOffsetForDate:(NSDate *)date;
/**
* Asks the delegate for an offset for subtitle for the specific date.
*/
- (CGPoint)calendar:(FSCalendar *)calendar appearance:(FSCalendarAppearance *)appearance subtitleOffsetForDate:(NSDate *)date;
/**
* Asks the delegate for an offset for image for the specific date.
*/
- (CGPoint)calendar:(FSCalendar *)calendar appearance:(FSCalendarAppearance *)appearance imageOffsetForDate:(NSDate *)date;
/**
* Asks the delegate for an offset for event dots for the specific date.
*/
- (CGPoint)calendar:(FSCalendar *)calendar appearance:(FSCalendarAppearance *)appearance eventOffsetForDate:(NSDate *)date; |
Hey, long time fan, 4th (?) time poster!
Anyway as the title suggests it, do you think it would be possible to add a function to make the event indicators closer in distance to the day? Or more specifically within the selection circle? It would definitely look better that way. Event indicators within the selection circle would have their colors changed to white for better visibility for example/
The text was updated successfully, but these errors were encountered: