WenchaoD / FSCalendar

A fully customizable iOS calendar library, compatible with Objective-C and Swift
MIT License
10.6k stars 1.94k forks source link

Range Picker Swift #786

Open zuil7 opened 7 years ago

zuil7 commented 7 years ago

Hi Good Day,

Do you have a sample range picker in swift? i am having hard time converting ObjC to swift.

This part here:

[self.calendar.visibleCells enumerateObjectsUsingBlock:^(__kindof FSCalendarCell _Nonnull obj, NSUInteger idx, BOOL _Nonnull stop) { NSDate *date = [self.calendar dateForCell:obj]; FSCalendarMonthPosition position = [self.calendar monthPositionForCell:obj]; [self configureCell:obj forDate:date atMonthPosition:position]; }];

Hope you can assist me on this

Great Library!

fparkar commented 6 years ago

Did you found solution? same here

StellarKuldeep commented 6 years ago

@zuil7 Refer my updated answer : https://github.com/WenchaoD/FSCalendar/issues/904