---
title: "bridgingHeader(_:visibility:_:)"
framework: Swift Package Manager
role: symbol
role_heading: Type Method
platforms: [swiftpm 6.5+]
path: "swift-package-manager/documentation/packagedescription/swiftsetting/bridgingheader(_:visibility:_:)"
---

# bridgingHeader(_:visibility:_:)

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

## Declaration

```swift
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

Discussion A bridging header allows Swift code to import non-modular C/C++/Objective-C code.
