Public
- allows access to the code in the same module or to another module that imports the module in which the code is declared.
Internal
- allows access to the code in the same module, but not to any other module. This is the default Swift access level.
Private
- restricts access to the source file in which the code is declared. Although usually one class, structure, enumeration, etc. is defined in the source file, you can declare more than one file per file.
These headers are a little misleading - all the headers will actually be visible to your customers and searchable in the search engine, but to import them into the umbrella header, you must explicitly make the headers public. [About Target Membership]
Source here and here
yoAlex5 Aug 12 '19 at 20:15 2019-08-12 20:15
source share