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?
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:
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?