Skip to content

NikolaGrujic91/Cocoa-macOS-Web-View-JavaScript-Communication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cocoa Web View JavaScript Communication

This repository contains implementation of WKWebView calling methods from JavaScript, and JavaScript sending messages to WKWebView over WKScriptMessageHandler.

Cocoa macOS Examples

In order to use web view it is neccessary to enable Outgoing connections (Client) in Signing & Capabilities tab of project settings

image missing

In order to load local file it is neccessary to add file as a resource to project. In Build Phases settings of project, file needs to show up under Copy Bundle Resources.

image missing

image missing

About

This repository contains implementation of WKWebView calling methods from JavaScript, and JavaScript sending messages to WKWebView over WKScriptMessageHandler.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published