From e20ec6ff844b718f13cc4f939a3b34ea47208cf2 Mon Sep 17 00:00:00 2001 From: Alex Grebenyuk Date: Wed, 8 Oct 2025 09:52:46 -0400 Subject: [PATCH 1/2] Increase deployment target to iOS 17 --- Package.swift | 4 ++-- ios/Demo-iOS/Sources/EditorView.swift | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Package.swift b/Package.swift index 841672f6..ff8954c5 100644 --- a/Package.swift +++ b/Package.swift @@ -1,11 +1,11 @@ -// swift-tools-version: 5.9 +// swift-tools-version: 6.1 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: "GutenbergKit", - platforms: [.iOS(.v15), .macOS(.v14)], + platforms: [.iOS(.v17), .macOS(.v14)], products: [ .library(name: "GutenbergKit", targets: ["GutenbergKit"]) ], diff --git a/ios/Demo-iOS/Sources/EditorView.swift b/ios/Demo-iOS/Sources/EditorView.swift index 627b984d..5c75d41d 100644 --- a/ios/Demo-iOS/Sources/EditorView.swift +++ b/ios/Demo-iOS/Sources/EditorView.swift @@ -91,10 +91,7 @@ private struct _EditorView: UIViewControllerRepresentable { func makeUIViewController(context: Context) -> EditorViewController { let viewController = EditorViewController(configuration: configuration) viewController.delegate = context.coordinator - - if #available(iOS 16.4, *) { - viewController.webView.isInspectable = true - } + viewController.webView.isInspectable = true viewController.startEditorSetup() return viewController } From 591f052599c0f224a98d65c4dd19dd7ab28a90c8 Mon Sep 17 00:00:00 2001 From: Alex Grebenyuk Date: Wed, 8 Oct 2025 10:03:11 -0400 Subject: [PATCH 2/2] Make EditorConfiguration sendable --- Package.swift | 2 +- ios/Demo-iOS/Gutenberg.xcodeproj/project.pbxproj | 2 ++ ios/Sources/GutenbergKit/Sources/EditorConfiguration.swift | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index ff8954c5..1fdb8300 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version: 6.1 +// swift-tools-version: 5.9 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription diff --git a/ios/Demo-iOS/Gutenberg.xcodeproj/project.pbxproj b/ios/Demo-iOS/Gutenberg.xcodeproj/project.pbxproj index 945cbdf1..18189233 100644 --- a/ios/Demo-iOS/Gutenberg.xcodeproj/project.pbxproj +++ b/ios/Demo-iOS/Gutenberg.xcodeproj/project.pbxproj @@ -309,6 +309,7 @@ INFOPLIST_KEY_UILaunchScreen_Generation = YES; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -340,6 +341,7 @@ INFOPLIST_KEY_UILaunchScreen_Generation = YES; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/ios/Sources/GutenbergKit/Sources/EditorConfiguration.swift b/ios/Sources/GutenbergKit/Sources/EditorConfiguration.swift index 8c16871e..3284af0b 100644 --- a/ios/Sources/GutenbergKit/Sources/EditorConfiguration.swift +++ b/ios/Sources/GutenbergKit/Sources/EditorConfiguration.swift @@ -1,6 +1,6 @@ import Foundation -public struct EditorConfiguration { +public struct EditorConfiguration: Sendable { /// Initial title for populating the editor public let title: String /// Initial content for populating the editor