close the view when clicked on outside in swift 5 code example Example: swift close view dismiss(self)