From ab9a7143f2a84494f0eb601d5ff50b03611c49a7 Mon Sep 17 00:00:00 2001 From: Antoine Marandon Date: Thu, 14 Nov 2024 19:18:06 +0900 Subject: [PATCH 1/2] Swift 6 compatibility --- Sources/StorybookKit/Primitives/BookPage.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/StorybookKit/Primitives/BookPage.swift b/Sources/StorybookKit/Primitives/BookPage.swift index 281d564..2ed9210 100644 --- a/Sources/StorybookKit/Primitives/BookPage.swift +++ b/Sources/StorybookKit/Primitives/BookPage.swift @@ -66,7 +66,7 @@ public struct BookPage: BookView, Identifiable { _ file: StaticString = #fileID, _ line: UInt = #line, title: String, - @ViewBuilder destination: () -> Destination + @ViewBuilder destination: @MainActor () -> Destination ) { self.file = file self.line = line From 5c57e0e5804a9b6bad6ed5224a417f37f304c0fe Mon Sep 17 00:00:00 2001 From: Antoine Marandon Date: Mon, 25 Nov 2024 17:17:58 +0900 Subject: [PATCH 2/2] Align Storybook to pairs --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 1f6096a..c98d808 100644 --- a/Package.swift +++ b/Package.swift @@ -5,7 +5,7 @@ import PackageDescription let package = Package( name: "Storybook", platforms: [ - .iOS(.v15), + .iOS(.v16), .macCatalyst(.v15), .macOS(.v10_15), ],