Try using HasModel instead of ModelEntity.
Your best bet at solving this is putting a breakpoint after setting map and having a look at the contents with Xcode's inspector.
Topic:
Spatial Computing
SubTopic:
ARKit
Tags: