You can theme an MDCActionSheet to match the Material Design style by using a theming extension. The content below assumes you have read the article on Theming.
First, create an action sheet and import the theming extension header for Action Sheets.
import MaterialComponents.MaterialActionSheet import MaterialComponents.MaterialActionSheet_Theming let actionSheet = MDCActionSheetController()
#import <MaterialComponents/MaterialActionSheet.h> #import <MaterialComponents/MaterialActionSheet+Theming.h> MDCActionSheetController *actionSheet = [[MDCActionSheetController alloc] init];
You can then provide a container scheme instance to any of the MDCActionSheet theming extensions.
Then, you can theme your action sheet.
actionSheet.applyTheme(withScheme: containerScheme)
[self.actionSheet applyThemeWithScheme:self.containerScheme];