What is the “@exported” attribute in Swift

前端 未结 2 1338
暖寄归人
暖寄归人 2021-02-07 07:25

I saw the use of @exported in this open source project, but didn\'t see it in Apple\'s documentation. What is this attribute and what does it do?

2条回答
  •  时光取名叫无心
    2021-02-07 07:57

    According to this site:

    exported : Apply this attribute to an import declaration to export the imported module, submodule, or declaration from the current module. If another module imports the current module, that other module can access the items exported by the current module.

提交回复
热议问题