v55.3.0
This minor release includes added customization to MDCDialogPresentationController, better topLayoutGuide support for MDCFlexibleHeader, doc improvements and other small bug fixes.
New features
Flexible header has a new behavioral flag for opting in to better topLayoutGuide support. This is primarily useful when using the flexible header container view controller. To opt in to this new behavior, do the following:
let container = MDCFlexibleHeaderContainerViewController()
container.isTopLayoutGuideAdjustmentEnabled = trueDialogs now offer customizable cornerRadius support to enable proper shadowing. You can set the dialog corner radius like so:
// We set the corner radius to adjust the shadow that is implemented via the trackingView in the
// presentation controller.
if let presentationController = presentedController.mdc_dialogPresentationController {
presentationController.dialogCornerRadius = presentedController.view.layer.cornerRadius
}API changes
Dialogs
MDCDialogPresentationController
new property: dialogCornerRadius in MDCDialogPresentationController
FlexibleHeader
MDCFlexibleHeaderContainerViewController
new property: topLayoutGuideAdjustmentEnabled in MDCFlexibleHeaderContainerViewController
MDCFlexibleHeaderViewController(ToBeDeprecated)
new category: MDCFlexibleHeaderViewController(ToBeDeprecated)
moved method: -updateTopLayoutGuide from class MDCFlexibleHeaderViewController to category MDCFlexibleHeaderViewController(ToBeDeprecated)
MDCFlexibleHeaderViewController
new property: topLayoutGuideAdjustmentEnabled in MDCFlexibleHeaderViewController
new property: topLayoutGuideViewController in MDCFlexibleHeaderViewController
Component changes
Tabs
Changes
- We should not force viewDidLoad when ViewControllers are set. (#4230) (Mohammad Cazi)
- [Docs] Add badges to all components. (#4278) (featherless)
FeatureHighlight
Changes
- View should not be loaded unless it's explicitly called or presented. (#4234) (Mohammad Cazi)
- [Docs] Add badges to all components. (#4278) (featherless)
- we dismiss and present feature highlight from the new spot. (#4300) (Mohammad Cazi)
AppBar
Changes
- [Docs] Add badges to all components. (#4278) (featherless)
Buttons
Changes
- [Docs] Add badges to all components. (#4278) (featherless)
ButtonBar
Changes
- [Docs] Add badges to all components. (#4278) (featherless)
TextFields
Changes
- Correcting copy mistake. (#4281) (Will Larche)
- Corrects obscure bug of height. (#4297) (Will Larche)
- Documentation update (#4295) (Will Larche)
- Fix notification parameter type (#4249) (Robert Moore)
- Fix text area placeholder (#4274) (Will Larche)
- Post SetText notifications for attributed text (#4282) (Robert Moore)
- [Docs] Add badges to all components. (#4278) (featherless)
Chips
Changes
- [Docs] Add badges to all components. (#4278) (featherless)
Snackbar
Changes
- [Docs] Add badges to all components. (#4278) (featherless)
Cards
Changes
- Fix the cards docs image asset. (Jeff Verkoeyen)
- [Docs] Add badges to all components. (#4278) (featherless)
BottomAppBar
Changes
- [Docs] Add badges to all components. (#4278) (featherless)
Slider
Changes
- [Docs] Add badges to all components. (#4278) (featherless)
NavigationBar
Changes
- [Docs] Add badges to all components. (#4278) (featherless)
ActivityIndicator
Changes
- [Docs] Add badges to all components. (#4278) (featherless)
BottomSheet
Changes
- Add an app bar to the typical use example. (#4268) (featherless)
- Fix layout issues caused by invoking self.dismissOnBackgroundTap in -init (#4241) (featherless)
Dialogs
Changes
- Add customizable cornerRadius to enable proper shadowing (#4233) (ianegordon)
- AlertController button layout issue (#4291) (ianegordon)
- Setting Properties on Alert controller will not force the view to load. (#4238) (Mohammad Cazi)
- [Docs] Add badges to all components. (#4278) (featherless)
BottomNavigation
Changes
- Correct long title layout (#4303) (Robert Moore)
- [Docs] Add badges to all components. (#4278) (featherless)
PageControl
Changes
- [Docs] Add badges to all components. (#4278) (featherless)
FlexibleHeader
Changes
- Fixed behavior for top layout guide and safe area insets. (#4214) (featherless)
- [Docs] Add badges to all components. (#4278) (featherless)
ProgressView
Changes
- [Docs] Add badges to all components. (#4278) (featherless)