Lets say I have a framework Foo
that defined an open class AwesomeType
. I embed that framework in my project, which unfortunately has a class named AwesomeType
, too.
I read in in multiple places that Swift has implicit namespacing and that I can have the explicit name by just appending the framework's name. In my case that would be Foo.AwesomeType
. That seems to work for instances of Foo.AwesomeType
, but not for subclassing.
When I try to do
import Foo
public class Subclass: Foo.AwesomeType {
}
I get an error saying that AwesomeType
is not a member type of Foo
. When I leave out Foo
, it will be referenced to the AwesomeTyp
in my project, instead of that of the framwork.
How do I specify the correct type here?