How do I create a method in an extension
and have it only accessible inside the class (or its subclasses), like a private
method, but declared in another file inside an extension
?
private
won't work, because it has to be inside the same declaration.
fileprivate
won't work, because it has to be on the same file.
public
or the default won't work, because it will be visible from other classes.
Am I missing something?
I'm looking for something like extensionprivate
or classprivate
.