UPDATE:
@JAL has pointed out to the accepted SO answer which suggests that the behaviour described in this question is a BUG which is now supposed to be fixed. There is no indication of when this fix goes live, though.
PREVIOUS UPDATE:
As this answer suggests, Xcode displays import <module_name>
in strikethrough font when it decides the import is redundant (which I assumed in the original question below).
BUT without the import <module_name>
compiler is failed with the error.
This kind of misbehaviour is the subject of my original question. Is it bug or am I missing something (e.g. correct linking to the framework, etc..)?
ORIGINAL QUESTION:
What does it mean when Xcode, suggesting import module as I type, displays the required module name in strikethrough font?
Description:
I want to create simple GKEntity
subclass. So, in new .swift
file I add the following:
class TBTEntity: GKEntity {
}
I know that GKEntity
itself is a part of GameplayKit
framework. So, I have to import the framework, otherwise, I see the error.
Use of undeclared type 'GKEntity'
Strikethrough font from UX perspective suggests me something like "you ain't gonna need this" or "the module is not available", but none of this seems to be true in fact.
Xcode 7.3 (7D175)