I am building an app with web programming languages and want to start the camera when the user clicks on an HTML button. Since I want my camera view to be a custom one, I need to design it with Swift. So when the user clicks on this HTML button, I wa...
I'm trying to catch every onClick event in WKWebView.  The website is working only with JavaScript so I cannot handle anything in:   func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escapi...
I created a iOS web browser with swift language code. And add an extra button to inject a script on that web page, but it always crash when I try this:  webView!.evaluateJavaScript("document.body.style.background = 'red';", nil)   Any...
I am trying to pass data from my sites Javascript to my app, written in Swift.  Javascript:  var messgeToPost = {      "username": "testing123" }; window.webkit.messageHandlers.loginSuccess.postMessage(messgeToPost);   Swift:  var web...
I found this javascript animation: JS animation  I really want to know how I can convert animations like this to use it in my Swift iOS app.  Has anybody got experience in likely things? I found things like spritekit, but I really can't find the...
I'm displaying some local web content and would like to get the word under the tap point. The single tap delegate is setup and I can get it to work great if I use a UITextView and load the HTML with a NSAttributedString and NSHTMLTextDocumentType...
Since I'm new to Swift, I'm not sure how to write a function for Swift to interactive Javascript Alert and Confirm from an Webapp. I'm creating an webapp with SwiftUI and need to implement a function for my Swift webapp to show Javascript...
I am trying to figure out how to implement JavaScript functions inside my iOS app using swift platform  .      I have tried out the example code specified in the link   https://tetontech.wordpress.com/2014/07/15/swift-to-javascript-and-javascript-to-...
Trying to get an html element name or value using preferred evaluate Javascript swift function using a WKWebView. I keep recieving nil.  I think maybe my function is firing before the page is loaded, thus never finding the element.  Right now just tr...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.