From 0388098ff0e40442f4b21e8b6fc1251dde0074bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robson=20Ten=C3=B3rio?= Date: Mon, 19 Jun 2023 05:54:53 -0300 Subject: [PATCH] fix: Update iOS version requirements NOTE: This is not a breaking change, because the code hasn't fundamentally changed since the introduction of version 5.0.0, this is just a fix that makes version 5.0.0 work correctly. Co-authored-by: Matic Zavadlal --- Package.swift | 4 ++-- website/docs/README.mdx | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index 5e5dc025..dcf43958 100644 --- a/Package.swift +++ b/Package.swift @@ -1,11 +1,11 @@ -// swift-tools-version:5.6 +// swift-tools-version:5.7 import PackageDescription let package = Package( name: "swift-graphql", platforms: [ - .iOS(.v13), + .iOS(.v15), .macOS(.v10_15), .tvOS(.v13), .watchOS(.v6) diff --git a/website/docs/README.mdx b/website/docs/README.mdx index 4058c868..50aebca0 100644 --- a/website/docs/README.mdx +++ b/website/docs/README.mdx @@ -19,6 +19,9 @@ The library is centered around three core principles: SwiftGraphQLClient is heavily inspired by `urql` GraphQL client in the JavaScript community. It models the queries as streams of values and lets you create custom operation processors called exchanges. ```swift +import SwiftGraphQLClient +import GraphQL + let request = URLRequest(url: URL(string: "http://127.0.0.1:4000/graphql")!) let client = SwiftGraphQLClient.Client(request: request)