RealmBool, RealmDouble, RealmInt, RealmString, RealmValue was deprecated. Realm 3 supports basic types natively.
Adds Realm representation for Int, String, Double and Bool. This allows to store them in Realm Lists.
To run the example project, clone the repo, and run
pod install from the Example directory first.
Please check official guide
RealmAdditions is available through CocoaPods. To install it, simply add the following line to your Podfile:
// Compile time error. List can't hold Strings // let stringsList = List<String> let realmString = RealmString(swiftValue: "string") let list = List<RealmString>() list.append(realmString) print(list.first!.value)
See example and test projects for more details.
Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.
Anton Plebanovich, [email protected]
RealmAdditions is available under the MIT license. See the LICENSE file for more info.