         button.frame = CGRect(
           x: CustomizableActionSheet.kMarginSide,
           y: currentPosition,
-          width: targetBounds.width - (CustomizableActionSheet.kMarginSide * 2),
+          width: safeAreaWidth - (CustomizableActionSheet.kMarginSide * 2),
           height: item.height)
         button.setTitle(item.label, for: UIControl.State())
         button.backgroundColor = item.backgroundColor

        }
      }
    }
    let positionX: CGFloat = 0
    var positionY: CGFloat = targetBounds.minY + targetBounds.height - currentPosition - safeAreaBottom
    var moveY: CGFloat = positionY
    if self.position == .top {

          let containerView = ActionSheetItemView(frame: CGRect(
            x: CustomizableActionSheet.kMarginSide,
            y: currentPosition,
            width: safeAreaWidth - (CustomizableActionSheet.kMarginSide * 2),
            height: item.height))
          containerView.layer.cornerRadius = defaultCornerRadius
          containerView.addSubview(view)
