# Automatic module name variable

**URL:** <https://forums.swift.org/t/automatic-module-name-variable/65573>\
**Category:** Using Swift\
**Tags:** bridging, objective-c\
**Created:** [June 14, 2023, 4:47pm UTC](https://forums.swift.org/t/automatic-module-name-variable/65573 "2023-06-14T16:47:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tera](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/tera/32/38201_2.png) [@tera](https://forums.swift.org/u/tera)\
**Post date:** [June 14, 2023, 4:47pm UTC](https://forums.swift.org/t/automatic-module-name-variable/65573/1 "2023-06-14T16:47:58Z")

</div>

Any way to automate this:

```swift
// BridgingHeader.h
#import "ProductName-Swift.h" // should be module name here

```

wanted something like this:

```swift
// BridgingHeader.h
#import "$(PRODUCT_NAME)-Swift.h"

```

Or, maybe there's a way to generate this header as part of the build process?

```swift
// BridgingHeader.h
#import "AutogeneratedHeader.h"

```

```swift
// AutogeneratedHeader.h
// autogenerated file, do not change
#import "ProperProductName-Swift.h"

```
