Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

realm class property cannot be marked dynamic

Tags:

ios

swift

realm

I just upgraded to Xcode 7 and Swift 2 and this line is throwing an Property cannot be marked dynamic because its type canot be represented in Objective-C:

dynamic var log = List<LogEntry>()
like image 923
Liumx31 Avatar asked Sep 17 '15 21:09

Liumx31


1 Answers

Realm changed it's documentation: Realm Swift 0.95.0 now you should use let instead of dynamic var

like image 194
Valerii Solodovnyk Avatar answered Nov 06 '22 10:11

Valerii Solodovnyk