bridgingHeader(_:visibility:_:)
Configures a bridging header for the target’s Swift sources.
Declaration
static func bridgingHeader(_ path: String, visibility: SwiftSetting.BridgingHeaderVisibility, _ condition: BuildSettingCondition? = nil) -> SwiftSettingParameters
- path:
The path of the bridging header, relative to the target’s sources directory.
- visibility:
Whether declarations imported via the bridging header may appear in the target’s public API. Library targets may only use
.internalvisibility. - condition:
A condition that restricts the application of the build setting.
Discussion
A bridging header allows Swift code to import non-modular C/C++/Objective-C code.