Skip to content

v107.2.0

Compare
Choose a tag to compare
@andrewoverton andrewoverton released this 10 Mar 20:27
· 1173 commits to stable since this release

This minor release includes the introduction of a self-sizing mechanism to MDCBaseCell, a new layout style for MDCTabBarView, and numerous improvements and bug fixes for BottomSheet, Snackbar, Dialogs, Ink, and TextFields.

New features

List

Having the UICollectionViewLayoutAttributes you use with MDCBaseCell conform to MDCSelfSizingLayoutAttributes allows you to specify whether the height or the width should be fixed.

-(BOOL)isFixedWidth {
  return 100;
}

-(BOOL)isFixedHeight {
  return 100;
}
var isFixedWidth: Bool {
  return 100;
}

var isFixedHeight: Bool {
  return 100;
}

Tabs

Setting the preferredLayoutStyle property on MDCTabBarView to MDCTabBarViewLayoutStyleScrollableCentered allows you to have a scrolling tab bar that centers the selected tab.

tabBarView.preferredLayoutStyle = MDCTabBarViewLayoutStyleScrollableCentered;
tabBarView.preferredLayoutStyle = .scrollableCentered

Component changes

BottomSheet

Chips

Dialogs

Ink

List

Snackbar

Tabs

TextControls

TextFields

Multi-component changes