It means headerView
is not an instance of ThemeHeader
as you expect but an instance of UICollectionReusableView
which does not have a title
property.
It could be because you might not have set ThemeHeader
as custom class in the identity inspector on storyboard for this resuable view.