Skip to content

A python based solution to generate native Swift Scripting Bridge files

Notifications You must be signed in to change notification settings

garrett-davidson/SwiftingBridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

SwiftingBridge

Apple's Scripting Bridge is totally awesome, but also unfortunately a complete mess. Swift is also fantastic, but still a bit of a mess as it continues to evolve. Here I have created their bastard child.

Swifting Bridge uses Apple's builtin sdef and sdp utilities to generate a Scripting Bridge header (as described in Apple's official documentation for Scripting Bridge) and then uses that generated Objective-C header to generate a native Swift file with (theoretically) all of the same functionality. That Swift file can be drug straight into a full Swift application and voila.

  • No Objective-C Bridging Headers.
  • No Swift wrappers.
  • No dealing with generic SBObjects.
  • No damn linker errors.

About

A python based solution to generate native Swift Scripting Bridge files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages