Swift Base Library

The Swift Base Library is a small library that can be optionally used in Swift projects compiled with the Elements compiler. It provides some of the core types, classes and functions that, while not part of the Swift language spec per se, are commonly used in Swift apps (and provided in a similar Swift Base Library in Apple's implementation).

This includes types such as the Swift-native array and dictionary types, and base functions like println().

The Swift Base Library ships precompiled with the Elements compiler. New projects created with one of the RemObjects Silver project templates will automatically have a reference to the library, but if you are adding Swift files to a project that started out with a different language, you can add a reference to your projects via the Add References dialog in Fire or Visual Studio, where the Swift library should show automatically.

The library is called Swift.dll on .NET, libSwift.fx on Cocoa and swift.jar on Java/Android.

The code for the Swift Base Library is open source and available on GitHub. We appreciate feedback, contributions and pull requests.

See Also