From 2fb6324b52ffec6c55d5851b910600c7ba31a983 Mon Sep 17 00:00:00 2001 From: Keita Watanabe Date: Mon, 12 Aug 2024 14:19:34 +0900 Subject: [PATCH] fix build error for Swift 6 --- Parchment/Protocols/PagingIndicatorStyle.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Parchment/Protocols/PagingIndicatorStyle.swift b/Parchment/Protocols/PagingIndicatorStyle.swift index 7167f434..de5b15ee 100644 --- a/Parchment/Protocols/PagingIndicatorStyle.swift +++ b/Parchment/Protocols/PagingIndicatorStyle.swift @@ -2,7 +2,7 @@ import Foundation import SwiftUI @available(iOS 14.0, *) -public protocol PagingIndicatorStyle { +public protocol PagingIndicatorStyle: Sendable { associatedtype Body: View typealias Configuration = PagingIndicatorConfiguration @ViewBuilder func makeBody(configuration: Configuration) -> Body @@ -34,7 +34,7 @@ struct DefaultPagingIndicatorStyle: PagingIndicatorStyle { @available(iOS 14.0, *) struct PagingIndicatorStyleKey: EnvironmentKey { - static var defaultValue: any PagingIndicatorStyle = DefaultPagingIndicatorStyle() + static let defaultValue: any PagingIndicatorStyle = DefaultPagingIndicatorStyle() } @available(iOS 14.0, *)