Realm v0.80.0 Release Notes
Release Date: 2014-07-15 // over 9 years ago-
API breaking changes
- 0๏ธโฃ Rename migration methods to -migrateDefaultRealmWithBlock: and -migrateRealmAtPath:withBlock:
- ๐ Moved Realm specific query methods from RLMRealm to class methods on RLMObject (-allObjects: to +allObjectsInRealm: ect.)
โจ Enhancements
- โ Added +createInDefaultRealmWithObject: method to RLMObject.
- โ Added support for array and object literals when calling -createWithObject: and -initWithObject: variants.
- โ Added method -deleteObjects: to batch delete objects from a Realm
- ๐ Support for defining RLMObject models entirely in Swift (experimental, see known issues).
- ๐ RLMArrays in Swift support Sequence-style enumeration (for obj in array).
- Implemented -indexOfObject: for RLMArray
Known Issues for Swift-defined models
- 0๏ธโฃ Properties other than String, NSData and NSDate require a default value in the model. This can be an empty (but typed) array for array properties.
- 0๏ธโฃ The previous caveat also implies that not all models defined in Objective-C can be used for object properties. Only Objective-C models with only implicit (i.e. primitives) or explicit default values can be used. However, any Objective-C model object can be used in a Swift array property.
- Array property accessors don't work until its parent object has been added to a realm.
- ๐ Realm-Bridging-Header.h is temporarily exposed as a public header. This is temporary and will be private again once rdar://17633863 is fixed.
- Does not leverage Swift generics and still uses RLM-prefix everywhere. This is coming in #549.