Skip to content

Commit 2822ca8

Browse files
committed
Expose preference key as public API
1 parent d83bc4c commit 2822ca8

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Sources/PredicateView/Views/Model/PredicateAttributePreferenceKey.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77

88
import SwiftUI
99

10-
struct PredicateAttributePreferenceKey: PreferenceKey {
11-
static var defaultValue: [UUID: AnyHashable]? { nil }
10+
public struct PredicateAttributePreferenceKey: PreferenceKey {
11+
public static var defaultValue: [UUID: AnyHashable]? { nil }
1212

13-
static func reduce(value: inout [UUID: AnyHashable]?, nextValue: () -> [UUID: AnyHashable]?) {
13+
public static func reduce(value: inout [UUID: AnyHashable]?, nextValue: () -> [UUID: AnyHashable]?) {
1414
if let nextValue = nextValue() {
1515
for (k, v) in nextValue { value?[k] = v }
1616
}
1717
}
1818
}
1919

20-
struct PredicateDeletedStatusPreferenceKey: PreferenceKey {
21-
static var defaultValue: Bool { false }
20+
public struct PredicateDeletedStatusPreferenceKey: PreferenceKey {
21+
public static var defaultValue: Bool { false }
2222

23-
static func reduce(value: inout Bool, nextValue: () -> Bool) {
23+
public static func reduce(value: inout Bool, nextValue: () -> Bool) {
2424
value = nextValue()
2525
}
2626
}

0 commit comments

Comments
 (0)