Skip to content

Commit 68d50c3

Browse files
Better guards for generic stuff here
1 parent 794db24 commit 68d50c3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Sources/TextFormation/CompositeFilter.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import Foundation
22

33
import Rearrange
44

5-
@available(macOS 13.0.0, *)
5+
#if compiler(>=6.1)
6+
@available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
67
public struct CompositeFilter<Interface: TextSystemInterface> {
78
public private(set) var filters: [any Filter<Interface>]
89

@@ -11,7 +12,7 @@ public struct CompositeFilter<Interface: TextSystemInterface> {
1112
}
1213
}
1314

14-
@available(macOS 13.0.0, *)
15+
@available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
1516
extension CompositeFilter: Filter {
1617
public mutating func processMutation(_ mutation: TextMutation<Interface>) throws -> Interface.Output? {
1718
for index in filters.indices {
@@ -23,3 +24,4 @@ extension CompositeFilter: Filter {
2324
return nil
2425
}
2526
}
27+
#endif

0 commit comments

Comments
 (0)