Simple but powerful Calendar Week View for iOS With dragable events
Following the work from MSCollectionView I created this library simplifing its usage
Pod pending yet...
you can now use storyboard to create a simple UIView extending the RVCalendarView and then just do this:
-(void)viewDidLoad{
MSEvent* event1 = [AKEvent make:NSDate.now
title:@"Title"
location:@"Central perk"];
MSEvent* event2 = [AKEvent make:[NSDate.now addMinutes:10]
duration:60*3
title:@"Title 2"
location:@"Central perk"];
_weekView.events = @[event1,event2];
}
Easy right?
You can get a dragable events calendar using RVWeekViewDragable
instead.
it will fire the following functions on your dragDelegate
-(BOOL)MSWeekView:(MSWeekView*)weekView canMoveEvent:(MSEvent*)event to:(NSDate*)date;
-(void)MSWeekView:(MSWeekView*)weekView event:(MSEvent*)event moved:(NSDate*)date;
You can even customeize some options
_weekView.weekFlowLayout.show24Hours = YES; //Show All hours or just the min to cover all events
_weekView.daysToShowOnScreen = 7; //How many days visible at the same time
_weekView.daysToShow = 31; //How many days to display (Ininite scroll feature pending)