Skip to content

Calendar is too short in week scope #268

@Vortec4800

Description

@Vortec4800

I need a week scope calendar at the top of my view. I created the calendar view in my Storyboard, and I have 3 constraints for the two sides and top edges (all 0pt from edge). I also have a height constraint set to 110pt.

Then in my viewDidLoad I set the scope:

override func viewDidLoad() {
    super.viewDidLoad()

    self.weeklyCalendar.setScope(.Week, animated: false)
}

When the view appears, the weekly calendar is only about 55pt tall and the days/dots are very small. If I do something to make the view re-layout (like rotate to landscape and then back to portrait) then it appears correctly.

Any idea why the view wouldn't be acting according to my constraints?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions