Skip to content

Commit

Permalink
Update onChange to use onChange_iOS17 (#1965)
Browse files Browse the repository at this point in the history
  • Loading branch information
joannaquu authored Feb 8, 2024
1 parent 12c93a3 commit 08de668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/FluentUI/ActivityIndicator/ActivityIndicator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public struct ActivityIndicator: View, TokenizedControlView {
}
.opacity(!state.isAnimating && state.hidesWhenStopped ? 0 : 1)
.rotationEffect(.degrees(rotationAngle), anchor: .center)
.onChange(of: state.isAnimating) { newValue in
.onChange_iOS17(of: state.isAnimating) { newValue in
newValue ? startAnimation() : stopAnimation()
}
.frame(width: side,
Expand Down

0 comments on commit 08de668

Please sign in to comment.