Skip to content

Commit 89a34a9

Browse files
committed
remove onChange_iOS17
1 parent 0dcfd55 commit 89a34a9

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

Sources/FluentUI_common/Core/Extensions/View+Modifiers.swift

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,6 @@ public extension View {
1313
func applyFluentShadow(shadowInfo: ShadowInfo) -> some View {
1414
modifier(ShadowModifier(shadowInfo: shadowInfo))
1515
}
16-
17-
/// Abstracts away differences in pre-iOS 17 `onChange(of:perform:)` versus post-iOS 17 `onChange(of:_:)`.
18-
///
19-
/// This function will be removed once FluentUI moves to iOS 17 as a minimum target.
20-
/// - Parameters:
21-
/// - value: The value to check against when determining whether to run the closure.
22-
/// - action: A closure to run when the value changes.
23-
/// - Returns: A view that fires an action when the specified value changes.
24-
@available(*, deprecated, message: "Please use the native onChange(of:_:) method instead.")
25-
func onChange_iOS17<V>(of value: V, _ action: @escaping (V) -> Void) -> some View where V: Equatable {
26-
return self.onChange(of: value) { _, newValue in
27-
return action(newValue)
28-
}
29-
}
3016
}
3117

3218
/// ViewModifier that applies both shadows from a ShadowInfo

0 commit comments

Comments
 (0)