The fix Alexander mentioned didn't work for me when too many pages had to be displayed. I would rather set the effect to nil:
for subview in pageControl.subviews {
guard let effectView = subview as? UIVisualEffectView else { continue }
effectView.effect = nil
}