         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

    self.itemContainerView.frame = CGRect(
      x: positionX,
      y: positionY,
      width: targetBounds.width,
      height: currentPosition)
    self.items = items


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