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?