     // Save instance to reaction until closing this sheet
     CustomizableActionSheet.actionSheets.append(self)
 
-    let screenBounds = UIScreen.main.bounds
+    let targetBounds = targetView.bounds
 
     // Save closeBlock
     self.closeBlock = closeBlock

  }

  public func dismiss() {
    // Hide animation
    self.maskView.alpha = 1
    let moveY = UIScreen.main.bounds.height - self.itemContainerView.frame.origin.y
    UIView.animate(withDuration: 0.2,
      delay: 0,
      usingSpringWithDamping: 1,

    // mask view
    let maskViewTapGesture = UITapGestureRecognizer(target: self, action: #selector(CustomizableActionSheet.maskViewWasTapped))
    self.maskView.addGestureRecognizer(maskViewTapGesture)
    self.maskView.frame = targetBounds
    self.maskView.backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.5)
    targetView.addSubview(self.maskView)

