The Swift Base Library is a small library that can be optionally used in Swift projects compiled with the RemObjects Silver 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 it should show automatically.
The library will be called Swift.dll
on .NET, libSwift.fx
on Cocoa and swift.jar
on Java and Android.
The code for the this library is open source and available under a liberal license. We appreciate contributions.
- RemObjects Silver Homepage
- RemObjects Silver Docs
- Swift Base Library API Reference on docs.elementscompiler.com