Is there a way to create and export a dynamic Swift structure without exposing it to implementation?

I have a dynamic iOS structure written in Swift, and would like to know how I can “export” the structure for use in external projects, leaving the implementation unexposed.

The "best" solution I came across is in this article , but for some reason autocomplete stops working when I try to use the classes from the framework in the project.

Right now I am using the Xcode workspace to use the structure inside the project. However, as already mentioned, I do not want the implementation to be shown.

I understand that Swift does not have separate interface and implementation files found in Objective-C, but I'm just wondering how other people approach this.

+4
source share

Source: https://habr.com/ru/post/1629762/


All Articles