Posts

Showing posts with the label mdc-components

MDCFlexibleHeaderView height issue

Image
Clash Royale CLAN TAG #URR8PPP MDCFlexibleHeaderView height issue I'm trying to use the MDCFlexibleHeader, in a ViewController with a UIScrollView. The headerView is always set to the minimumHeight, which is weird because I set a maximumHeight also. I think it's because of the way I set my constraints, but I'm not sure I'm doing wrong with my constraints. I tried to use the following as example code https://github.com/material-components/material-components-ios/tree/develop/demos/Shrine Here is my code: import UIKit import MaterialComponents.MaterialFlexibleHeader class MainFlexibleHeaderContainerViewController: MDCFlexibleHeaderContainerViewController { init() { let viewController = MainViewController(nibName: nil, bundle: nil) super.init(contentViewController: viewController) viewController.headerViewController = self.headerViewController viewController.setupHeaderView() } required init?(coder aDecoder: NSCoder) { fa...