Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- `apollo-codegen-swift`
- Ensure fields named `self` don't cause compilation errors in the generated code [#1533](https://github.com/apollographql/apollo-tooling/pull/1533)
- Preserve leading/trailing underscores on field names [#1533](https://github.com/apollographql/apollo-tooling/pull/1533)
- Allow generated code to be compiled without a module umbrella header [#1248](https://github.com/apollographql/apollo-tooling/pull/1248)
- `apollo-codegen-typescript`
- <First `apollo-codegen-typescript` related entry goes here>
- `apollo-env`
Expand Down
1 change: 1 addition & 0 deletions packages/apollo-codegen-swift/src/codeGeneration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export class SwiftAPIGenerator extends SwiftGenerator<CompilerContext> {
);
this.printNewline();
this.printOnNewline(swift`import Apollo`);
this.printOnNewline(swift`import Foundation`);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ exports[`client:codegen writes swift types from local schema 1`] = `
"// This file was automatically generated and should not be edited.

import Apollo
import Foundation

public final class SimpleQueryQuery: GraphQLQuery {
/// The raw GraphQL definition of this operation.
Expand Down Expand Up @@ -223,6 +224,7 @@ exports[`client:codegen writes swift types from local schema in a graphql file 1
"// This file was automatically generated and should not be edited.

import Apollo
import Foundation

public final class SimpleQueryQuery: GraphQLQuery {
/// The raw GraphQL definition of this operation.
Expand Down