Why is the extension of my Swift class not visible outside the defining file? Why is the extension of my Swift class not visible outside the defining file? ios ios

Why is the extension of my Swift class not visible outside the defining file?


It sounds like your new file (SomeClassExtension.swift) didn't get included in the correct target. Double-check the file's target membership by selecting the file in Xcode, then opening the "File Inspector" (View menu > Utilities > Show File Inspector). Make sure the correct targets are checked under the Target Membership heading.


I don't see any public modifiers on those methods.


matomo