 
   @objc func didTapShowBannerButton() {
     bannerView.isHidden = false
-    UIAccessibility.post(notification:.layoutChanged, argument: bannerView);
+    bannerView.setNeedsLayout()
+    UIAccessibility.post(notification: .layoutChanged, argument: bannerView)
   }
 
   @objc func didTapDismissOnBannerView() {

    bannerView.layoutMargins = .zero
    let actionButton = bannerView.leadingButton
    actionButton.setTitle("Dismiss", for: .normal)
    actionButton.addTarget(self, action: #selector(self.didTapDismissOnBannerView), for: .touchUpInside)
    bannerView.applyTheme(withScheme: containerScheme)
    view.addSubview(bannerView)
    bannerView.isHidden = true

// limitations under the License.

import UIKit
import MaterialComponents.MaterialBanner
import MaterialComponents.MaterialBanner_Theming 
import MaterialComponents.MaterialButtons
import MaterialComponents.MaterialButtons_Theming 
import MaterialComponents.MaterialColorScheme
import MaterialComponents.MaterialContainerScheme

