mirror of
https://github.com/material-components/material-components-ios.git
synced 2026-02-20 08:27:32 +08:00
552 B
552 B
Subclassing considerations
A subclass of your view controller may add additional views in their viewDidLoad, potentially resulting in the header being covered by the new views. It is the responsibility of the subclass to take the z-index into account:
Swift
view.insertSubview(myCustomView, belowSubview: headerViewController.headerView)
Objective-C
[self.view insertSubview:myCustomView belowSubview:self.headerViewController.headerView];