File tree Expand file tree Collapse file tree
Sources/FluentUI_common/Core/Extensions Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments