 
 @available(iOS 15.0, *)
 struct CustomStyleView: View {
-  @State var text: String = "You are doing great!"
+  @State var text: String
+  @State var showActivity: Bool
+  @State var showProgress: Bool
   @StateObject var style: CustomStyle = .init()
-
-  @State var showActivity: Bool = true
-  @State var showProgress: Bool = true
 
   weak static var statusBarView: JDStatusBarView? = nil
 


@available(iOS 15.0, *)
class CustomStyleViewFactory: NSObject {
  @objc static func createCustomStyleView(presentationHandler: @escaping () -> Void) -> UIViewController {
    return UIHostingController(rootView: CustomStyleView())
  }
}


@available(iOS 15.0, *)
struct CustomStyleView_Previews: PreviewProvider {
  static var previews: some View {
    CustomStyleView(text: "Initial Text", showActivity: true, showProgress: true)
  }
}
