Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
16 lines (12 loc) · 357 Bytes

File metadata and controls

16 lines (12 loc) · 357 Bytes
Copy raw file
Download raw file
Outline
Edit and raw actions

ExportSwift Example

This example demonstrates how to export Swift functions to JavaScript.

Building and Running

  1. Build the project:

    env JAVASCRIPTKIT_EXPERIMENTAL_BRIDGEJS=1 swift package --swift-sdk $SWIFT_SDK_ID js --use-cdn
  2. Serve the files:

    npx serve

Then open your browser to http://localhost:3000.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.