Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

v94.0.0

Choose a tag to compare

@andrewoverton andrewoverton released this 08 Nov 18:30
· 2044 commits to stable since this release

This major release adds a new configuration block to MDCSnackBarMessage and moves the currently in development MDCTextControl based TextFields from the TextFields component directory to their own TextControls directory. While there are no API changes associated with this move, it does have the potential to break anyone importing these textfields from their old location, hence the major version bump.

New features

MDCSnackBarMessage now provides a block that is called before the message is presented. This allows clients to perform last minute configurations.

Objective-C

MDCSnackbarMessage *message = [[MDCSnackbarMessage alloc] init];
message.snackbarMessageWillPresentBlock =
  ^(MDCSnackbarMessage *snackbarMessage, MDCSnackbarMessageView *messageView) {
      // Configure snackbar message.
    };
[MDCSnackbarManager showMessage:message];

Swift

let message = MDCSnackbarMessage()
message.snackbarMessageWillPresentBlock = { snackbarMessage, messageView in
  // Configure snackbar message.
}
MDCSnackbarManager.showMessage(message)

Component changes

TextControls

Snackbar