Find the source of the dark gray color and change it to UIColor.clear
I would guess that this is the background color of the upper UIView, and since it expands and reduces its size, there is a 0.5px delay every few pixels.
It's hard to say without seeing your code.
source share