Skip to content

v107.3.0

Compare
Choose a tag to compare
@jverkoey jverkoey released this 17 Mar 12:44
· 1143 commits to stable since this release

This minor release includes several new APIs and improvements to Dialogs, AppBar, and Slider.

New features

MDCAppBarViewController now provides an accessibilityPerformEscapeDelegate, which can be used to
customize the accessibilityPerformEscape behavior of the AppBar without subclassing.

class SomeDelegate: NSObject, MDCAppBarViewControllerAccessibilityPerformEscapeDelegate {
  func appBarViewControllerAccessibilityPerformEscape(_ appBarViewController: MDCAppBarViewController) -> Bool {
		// Perform custom escape handling
    return true
  }
}

appBarViewController.accessibilityPerformEscapeDelegate = delegate

MDCAlertController has a new messageAlignment API which can be used to adjust the alignment of the
message text:

alertController.messageAlignment = .right

MDCAlertController also now allow the order and alignment of actions to be customized with three new
APIs:

  • actionsHorizontalAlignment
  • actionsHorizontalAlignmentInVerticalLayout
  • orderVerticalActionsByEmphasis
alert.actionsHorizontalAlignment = .justified
alert.actionsHorizontalAlignmentInVerticalLayout = .justified
alert.orderVerticalActionsByEmphasis = true

MDCSlider now allows you to customize the appearance of the thumb track with the new
shouldDisplayThumbWithDiscreteValueLabel API. Turning this API on will keep the thumb track
visible while the user is interacting with the slider.

slider.shouldDisplayThumbWithDiscreteValueLabel = true

Component changes

AppBar

Dialogs

FlexibleHeader

Ink

Slider