RLMArray with Swift 4


#1

Hello,

I’m having trouble making Realm Objc play nice with Swift 4.
Code that used to run with Swift 3.2 no longer work, specifically enumerating through an RLMArray property.
With Swift 4 we get error such as this:
Type '(RLMArray<Profile> & ProfileProtocol)!' does not conform to protocol 'Sequence'

Here’s gist with some code and the generated interface by swift.
Here’s a project to reproduce my situation.

Any workaround ?

Thanks.