         view.backgroundColor = StateContainerAppereance.backgroundColor
         view.addAutolayoutSubview(stateView)
         stateView.centerInSuperview()
+        NSLayoutConstraint.activate([
+                stateView.leadingAnchor.constraint(equalTo: view.leadingAnchor, constant: StateContainerAppereance.padding),
+                stateView.trailingAnchor.constraint(equalTo: view.trailingAnchor, constant: -StateContainerAppereance.padding),
+            ])
     }
 }


public enum StateContainerAppereance {
    public static var backgroundColor = UIColor.white
}

@objc(BSWStateContainerViewController)

    public func showErrorMessage(_ message: String, error: Error, retryButton: ButtonConfiguration? = nil) {
        
        #if DEBUG
        let errorMessage = "\(message) \nError code: \(error.localizedDescription)"
        #else
        let errorMessage = message
        #endif
