     }
 
     private func setup(viewState: ToastViewState) {
-        setupLayer()
         setupStackView()
         stackView.addArrangedSubview(toastView(for: viewState.style))
         stackView.addArrangedSubview(label)

import DesignKit

class RoundedToastView: UIView, Themable {
    private struct Constants {
        static let padding = UIEdgeInsets(top: 10, left: 12, bottom: 10, right: 12)
        static let activityIndicatorScale = CGFloat(0.75)
        static let imageViewSize = CGFloat(15)
        static let shadowOffset = CGSize(width: 0, height: 4)
        static let shadowRadius = CGFloat(12)
        static let shadowOpacity = Float(0.1)
    }
    
    private lazy var activityIndicator: UIActivityIndicatorView = {

        stackView.arrangedSubviews.first?.tintColor = theme.colors.primaryContent
        label.font = theme.fonts.subheadline
        label.textColor = theme.colors.primaryContent
        
        let shadowStyle = theme.identifier == ThemeIdentifier.dark.rawValue ? Constants.darkShadow : Constants.lightShadow
        layer.shadowColor = UIColor.black.cgColor
        layer.shadowOffset = shadowStyle.offset
        layer.shadowRadius = shadowStyle.radius
        layer.shadowOpacity = shadowStyle.opacity
    }
    
    private func toastView(for style: ToastViewState.Style) -> UIView {
