Action Sheet
Material design action sheets should be used as an overflow menu. An Action Sheet comes up from the bottom of the screen and displays actions a user can take.
Overview
MDCActionSheetController is a material design implementation of UIAlertControllerStyleActionSheet.
Installation
Usage
MDCActionSheetController vs. UIAlertControllerStyleActionSheet
MDCActionSheetController is intended to mirror a UIAlertController with the UIAlertControllerStyleActionSheet style.
Similarities
-
Both classes are presented from the bottom of the screen on an iPhone and have a list of actions.
-
Both classes support optional title and message properties.
Differences
-
UIAlertControllerActionSheetStyle requires that you set the popoverPresentationController on larger devices, MDCActionSheetController doesn't support popoverPresentationController but instead always comes up from the bottom of the screen.
-
UIAlertControllerStyleActionSheet is a style of UIAlertController and not its own class. If you need a Material UIAlertController please see the
MDCAlertControllerclass. -
MDCActionSheetController does not support text fields.
-
MDCActionSheetController does not have a preferredAction.

