Last active
June 21, 2022 11:26
-
-
Save ohetzendorfer/760900828066156e4c94f0423b4aa6b8 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