This is a sample project of SwiftUI and GraphQL(apollo-ios) using GitHub GraphQL API
To try this sample project, you need to set Github Personal Access Token
below and generate API.swift
.
SwiftUI-GraphQL/Sources/GraphQL/Intercepter/AuthIntercepter.swift
/// TODO: GithubのPersonal Access Tokenを追加
request.addHeader(name: "Authorization", value: "Bearer {TOKEN}")
generate API.swift
$ make generate