Search code examples
iosswiftios7realm

Using Realm with Swift on iOS 7


I have an app written in Swift that supports iOS 7. I want to use Realm for my database, but according to their documentation the Swift library supports iOS 8 only.

I don't want to write Objective-C code in my app. Is there any way around this?


Solution

  • Since RealmSwift must be distributed as a dynamic framework, there's no real way to use it on iOS 7. Realm Objective-C should work just fine in Swift, albeit with a less 'native' feel.