Skip to content

Commit

Permalink
fix build error for Swift 6
Browse files Browse the repository at this point in the history
  • Loading branch information
kitwtnb committed Aug 12, 2024
1 parent 1f6c109 commit 2fb6324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Parchment/Protocols/PagingIndicatorStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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, *)
Expand Down

0 comments on commit 2fb6324

Please sign in to comment.