Skip to content

🚫 This project is no longer maintained. This package provides extensions to basic data types to add bridge() functions, in order to enable Swift Linux code with bridge() functions to compile on non-Linux platforms

License

Notifications You must be signed in to change notification settings

IBM-Swift-Sunset/Bridging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bridging

From https://github.com/apple/swift-corelibs-foundation/blob/e579dcd0b82dc40e9fe6596b4a5209ece2ba4166/Docs/Issues.md :

NSDictionary, NSArray, NSSet and NSString are not yet implicitly convertible to Dictionary, Array, Set, and String. In order to translate between these types, we have temporarily added a protocol to these types that allows them to be converted. There is one method called bridge().

let myArray: NSArray = ["foo", "bar", "baz"].bridge()

...
These limitations should hopefully be very short-term.

In order to compile code that calls bridge() functions both on Linux and on other platforms, we provide extensions to NSDictionary, NSArray, NSSet and NSString, to add bridge() functions on non-Linux platforms.

License

This library is licensed under Apache 2.0. Full license text is available in LICENSE.

About

🚫 This project is no longer maintained. This package provides extensions to basic data types to add bridge() functions, in order to enable Swift Linux code with bridge() functions to compile on non-Linux platforms

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages