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




From :

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.


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