UIGradient and UICorner cause lag?

UICorner causes lag? like, something that really makes a difference? I’m using approximately 30 of them, I don’t know if that’s too much and also, does UIGraadient make a lot of difference? I’m using this a lot too

So for the uigradient it lags when you use more than 7 color sequences

And 30. It’s obviously too much