When using .glassEffect(.clear, in: .circle)
with animation in a View
, there is a chance that black pixel blocks flash on the screen.
The abnormal effect can be seen in the attached video and screenshots.FB20216507
Code is as follows:
VStack {
if isLoaded {
VStack {
if #available(macOS 26.0, *) {
Color.clear
.frame(maxWidth: .infinity, maxHeight: .infinity)
.glassEffect(.clear, in: .circle)
}
}
.transition(.asymmetric(insertion: .scale, removal: .opacity))
}
}
.animation(.bouncy, value: isLoaded)