After updating my Xcode to 10.2 which includes Swift 5, I tried building my project and got this error.
dynamic property 'openingHours' must also be '@objc'
on this line of code
dynamic let openingHours =
List<ShopHourRealm>()
And before updating to Xcode 10.2, I was able to build and compile my project without any error. Any thoughts why this is happening?
You don't need to specify dynamic for Realm List types. Just
will suffice.
Based on the examples here https://realm.io/docs/swift/latest/#models