         return
       }
       if let hostingController = hostingController {
+        hostingController.popupController?.style = style
         hostingController.rootView = contentView
         hostingController.contentSizeInPopup = hostingController.sizeThatFits(in: view.bounds.size)
       } else {

@available (iOS 13.0, *)
fileprivate struct PopupView<ContentView>: UIViewControllerRepresentable where ContentView: View {
  let isPresented: Bool
  let onDismiss: (() -> Void)?
  let contentView: ContentView
  

  func updateUIViewController(_ popupViewController: PopupViewController, context: Context) {
    popupViewController.contentView = contentView
    popupViewController.isPresented = isPresented
    popupViewController.style = style
    popupViewController.onDismiss = onDismiss
    popupViewController.didUpdate()
  }
