Added ability to tap outside of the swview to dismiss it. Fix bug in the collision delegate