How do I solve the camera collision problem?

Already using spring arm, how do I stop the forward lean if collisions/trace are detected?