Quivr / iOS-Week-View

QVRWeekView is a framework which provides a calendar view that can be customized to display between 1 to 7 days in both portrait and landscape mode. Includes customization features to customize colours, fonts and sizes.
MIT License
39 stars 21 forks source link

weekview layout constraints #2

Closed ezmegy closed 6 years ago

ezmegy commented 7 years ago

Hi,

I'm not sure how I should set the weekview's constraints:

Is the top bar's size fixed maybe? How to set it to support different screen sizes?

Cheers

reilem commented 7 years ago

This is due to the fact that your the default subview of a viewcontroller extends underneath the navigation bar. I would recommend not using the default subview in this case and either attaching the weekView to the viewController directly in the storyboard and using the graphical interface to add constraints (see image).

screen shot 2017-08-15 at 16 20 36

Or you could do it programatically and add constraints to your weekView, but this is quite tricky to do programmatically, you can find out how to here.

ezmegy commented 7 years ago

Thanks, it did the trick!