                     let safeAreaOffset = keyWindow.safeAreaInsets.left + keyWindow.safeAreaInsets.right
                     
                     boundingWidth -= safeAreaOffset
+                }
+                
+                if leftView != nil {
+                    boundingWidth -= iconSize + padding
+                }
+                
+                if rightView != nil {
+                    boundingWidth -= iconSize + padding
                 }
                 
                 let titleHeight = titleLabel?.text?.height(

    /// The view that is presented on the right side of the notification
    private var rightView: UIView?
    
    public init(title: String,
                subtitle: String? = nil,
                leftView: UIView? = nil,

            contentView.addSubview(rightView)
            
            rightView.snp.makeConstraints({ (make) in
                make.size.equalTo(iconSize)
                make.centerY.equalTo(labelsView)
                make.right.equalToSuperview().offset(-padding)
            })
        }
        
        titleLabel = UILabel()
        titleLabel!.font = UIFont.systemFont(ofSize: 17.5, weight: UIFont.Weight.bold)
