In iOS 26, the thumb button for a SwiftUI Slider takes on a glass look throughout interplay. When the person touches it, it grows bigger and has the looks of a transparent glass droplet. When launched, it goes again to its smaller opaque kind.
I’ve observed that when the thumb button goes again to its smaller kind, the slider worth tends to "twitch" (by which I imply, it adjustments to a different worth, then adjustments again). That is significantly noticeable if the slider worth is displayed with animation. It would not occur each time, but it surely does occur very often.
The issue may be reproduced with the next code:
struct ContentView: View {
@State non-public var sliderVal = CGFloat.zero
var physique: some View {
VStack {
Textual content("(String(format: "%.1f", sliderVal))")
.contentTransition(.numericText(worth: sliderVal))
.animation(.easeInOut, worth: sliderVal)
Slider(worth: $sliderVal, in: 0...300, step: 1)
.padding(.horizontal)
}
}
}
The next was captured on an iPhone 17 simulator operating iOS 26.2:

I used to be additionally in a position to reproduce the problem on an actual gadget (iPhone 13 mini) operating iOS 26.2.1. The issue isn’t seen with iOS variations < 26.0. Pre iOS 26, the thumb button didn’t change dimension throughout interplay and, in fact, there was no glass impact.
How can the twitching be prevented, whereas retaining the brand new look with glass impact?

