Skip to content

Commit 4ecf363

Browse files
authored
Increase deployment target to iOS 17 (#189)
* Increase deployment target to iOS 17 * Make EditorConfiguration sendable
1 parent 9c37290 commit 4ecf363

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import PackageDescription
55

66
let package = Package(
77
name: "GutenbergKit",
8-
platforms: [.iOS(.v15), .macOS(.v14)],
8+
platforms: [.iOS(.v17), .macOS(.v14)],
99
products: [
1010
.library(name: "GutenbergKit", targets: ["GutenbergKit"])
1111
],

ios/Demo-iOS/Gutenberg.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@
309309
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
310310
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
311311
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
312+
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
312313
LD_RUNPATH_SEARCH_PATHS = (
313314
"$(inherited)",
314315
"@executable_path/Frameworks",
@@ -340,6 +341,7 @@
340341
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
341342
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
342343
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
344+
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
343345
LD_RUNPATH_SEARCH_PATHS = (
344346
"$(inherited)",
345347
"@executable_path/Frameworks",

ios/Demo-iOS/Sources/EditorView.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,7 @@ private struct _EditorView: UIViewControllerRepresentable {
9191
func makeUIViewController(context: Context) -> EditorViewController {
9292
let viewController = EditorViewController(configuration: configuration)
9393
viewController.delegate = context.coordinator
94-
95-
if #available(iOS 16.4, *) {
96-
viewController.webView.isInspectable = true
97-
}
94+
viewController.webView.isInspectable = true
9895
viewController.startEditorSetup()
9996
return viewController
10097
}

ios/Sources/GutenbergKit/Sources/EditorConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
public struct EditorConfiguration {
3+
public struct EditorConfiguration: Sendable {
44
/// Initial title for populating the editor
55
public let title: String
66
/// Initial content for populating the editor

0 commit comments

Comments
 (0)