Skip to content

Commit be11d18

Browse files
gjcairothomasvl
authored andcommitted
Fix Foundation import's access level in generated code
1 parent fef831d commit be11d18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/protoc-gen-swift/FileGenerator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class FileGenerator {
9696
}
9797
}
9898

99-
p.print("\(comments)import Foundation")
99+
p.print("\(comments)\(generatorOptions.importDirective.snippet) Foundation")
100100

101101
if fileDescriptor.isBundledProto {
102102
p.print("// 'import \(namer.swiftProtobufModuleName)' suppressed, this proto file is meant to be bundled in the runtime.")

0 commit comments

Comments
 (0)