I want to do the following:
MyClass.swift:
public class MyClass {
...
}
MyClass + Extension.swift:
extension MyClass {
...
}
If I have both files in one file, it works fine, if they are in separate files, I get the following error:
"Use of undeclared type 'MyClass'"
I have already verified the target membership of both files. They are part of the same goal.
Any help is much appreciated!
source
share