HorizonCalendar icon indicating copy to clipboard operation
HorizonCalendar copied to clipboard

How to use this library in a project with existing storyboard?

Open shreeya08 opened this issue 3 years ago • 6 comments

I have a project in which i need to open a calendar from side menu . How can i implement that?

shreeya08 avatar Feb 28 '22 10:02 shreeya08

same question, if you find out the solution do let me know as I wants to open the calendar view inside a UIView on limited portion of screen.

nomi1315 avatar Feb 28 '22 12:02 nomi1315

airbnb Calendar.zip I have found a working solution .This is a sample project that i created using storyboard.This is not the complete solution for your requirement but i hope this will be helpful.

shreeya08 avatar Mar 02 '22 10:03 shreeya08

Sure, thanks. I'll look into this.

nomi1315 avatar Mar 02 '22 10:03 nomi1315

You can use it in a Storyboard, but you'll need to set up an IBOutlet and do all of the CalendarViewContent setup programmatically.

bryankeller avatar Mar 05 '22 01:03 bryankeller

If you want to use it in some kind of side menu, then you'll need to add it as a subview to your side view. It's hard to provide further guidance without seeing a design / knowing what you've tried already.

bryankeller avatar Mar 05 '22 01:03 bryankeller

Just use the following code to add it to any view you want:

self.myView.addSubview((self.calendar?.view) ?? UIView())

nomi1315 avatar Mar 07 '22 08:03 nomi1315