@@ -352,15 +352,7 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
352
352
this . viewController = controller ; // store the viewController so that safeArea overflow is applied correctly
353
353
}
354
354
355
- // controller.modalPresentationStyle = UIModalPresentationStyle.FormSheet;
356
-
357
- // this.horizontalAlignment = 'stretch';
358
- // this.verticalAlignment = 'stretch';
359
-
360
355
this . _raiseShowingBottomSheetEvent ( ) ;
361
- // const controller = UIViewController.new();
362
- // controller.view= MDCTextField.new();
363
- // animated = animated === undefined ? true : !!animated;
364
356
const bottomSheet = ( this . bottomSheetController = MDCBottomSheetController . alloc ( ) . initWithContentViewController ( controller ) ) ;
365
357
this . bottomSheetControllerDelegate = bottomSheet . delegate = MDCBottomSheetControllerDelegateImpl . initWithOwner ( this ) ;
366
358
bottomSheet . isScrimAccessibilityElement = true ;
@@ -378,7 +370,7 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
378
370
parentController . presentViewControllerAnimatedCompletion ( bottomSheet , true , null ) ;
379
371
if ( options . transparent === true ) {
380
372
controller . view . backgroundColor = UIColor . clearColor ;
381
- // for it to be more beautiful let s disable elevation
373
+ // for it to be prettier let s disable elevation
382
374
controller . view [ 'elevation' ] = 0 ;
383
375
} else if ( ! ( this instanceof Page ) ) {
384
376
controller . view . backgroundColor = majorVersion <= 12 && ! UIColor . systemBackgroundColor ? UIColor . whiteColor : UIColor . systemBackgroundColor ;
0 commit comments