Issue: Realm doesn't respond in a right way?


i’m using realm as local database
before: the database was appear fine and when I click on any row “inside a TableView–>passing to CollectionView” I can see all the details associated
now: the database was appear fine but!!! When I click on a row it only show the details of the (first row) of the whole data Ex: if I’ve data with 3 name John, Eric, Diana it gave me the details for John only even when I click on Diana! got it right?

Version: Xcode 10.1
Realm V13.13.0


looks like I’ve the same issue with every app
I’ll leave a link for a project may someone break the code