Contents

bridgingHeader(_:visibility:_:)

Configures a bridging header for the target’s Swift sources.

Declaration

static func bridgingHeader(_ path: String, visibility: SwiftSetting.BridgingHeaderVisibility, _ condition: BuildSettingCondition? = nil) -> SwiftSetting

Parameters

  • 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 .internal visibility.

  • 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.