Size changes propagation to child view controller
In A Look Inside Presentation Controllers - WWDC 2014 session the following pattern was introduced.
- A
child view controlleror apresented view controllercan issue a request for size update by setting itspreferredContentSizeproperty. - A
parent view controlleror apresentation controllerwill receive a callback onpreferredContentSizeDidChangeForChildContentContainermethod. - At this point the receiver can decide if can allow the size request and layout the child view controller or the presented view controller.