Skip to content

Commit bc66546

Browse files
committed
chore: cleanup
1 parent 366ef1e commit bc66546

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/bottomsheet/bottomsheet.ios.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -352,15 +352,7 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
352352
this.viewController = controller; // store the viewController so that safeArea overflow is applied correctly
353353
}
354354

355-
// controller.modalPresentationStyle = UIModalPresentationStyle.FormSheet;
356-
357-
// this.horizontalAlignment = 'stretch';
358-
// this.verticalAlignment = 'stretch';
359-
360355
this._raiseShowingBottomSheetEvent();
361-
// const controller = UIViewController.new();
362-
// controller.view= MDCTextField.new();
363-
// animated = animated === undefined ? true : !!animated;
364356
const bottomSheet = (this.bottomSheetController = MDCBottomSheetController.alloc().initWithContentViewController(controller));
365357
this.bottomSheetControllerDelegate = bottomSheet.delegate = MDCBottomSheetControllerDelegateImpl.initWithOwner(this);
366358
bottomSheet.isScrimAccessibilityElement = true;
@@ -378,7 +370,7 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
378370
parentController.presentViewControllerAnimatedCompletion(bottomSheet, true, null);
379371
if (options.transparent === true) {
380372
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
382374
controller.view['elevation'] = 0;
383375
} else if (!(this instanceof Page)) {
384376
controller.view.backgroundColor = majorVersion <= 12 && !UIColor.systemBackgroundColor ? UIColor.whiteColor : UIColor.systemBackgroundColor;

0 commit comments

Comments
 (0)