-
-
Save vitsky91/171de5de64c0ab9dfd56d4d90b5626c7 to your computer and use it in GitHub Desktop.
Realm results extension for transforming to array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RealmSwift | |
extension Results { | |
func toArray() -> [T] { | |
return self.map{ $0 } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment