Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

185
Views
cómo comunicarse entre WKWebView en swiftUI con javascript en HTML5

Uso WKWebView dentro de swiftUI, ¿puedo preguntar cómo puedo comunicarme entre Javascript en Html5 y webkit? Uso userContentController, y también llamé a userContentController.add(messageHandler, nombre: "messageHandler"), pero no pude encontrar la propiedad webkit en la propiedad de ventana en Html5, no está definida. No sé cómo ajustar mi código y cómo llamar al webkit para comunicarme con el webkit a WKWebkit en Javascript, a continuación se muestra mi código

 func updateUIView(_ uiView:WKWebView,context:Context) { if let url = url, let requestURL=URL(string:url){ let webConfiguration=WKWebViewConfiguration() let userContentController=WKUserContentController() webConfiguration.userContentController=userContentController uiView.load(URLRequest(url:requestURL)) var cache=URLCache.init() URLCache.shared.removeAllCachedResponses() URLCache.shared.diskCapacity=0 URLCache.shared.memoryCapacity=0; userContentController.add(messageHandler, name: "messageHandler") } }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!