title: How to resign Keyboard on scrolling in either direction up or down in swift?
body: <p>Dismiss the keyboard when scroll down the scrollview. And do not hide for scroll up(like comments screen in Instagram app). How to differentiate scroll up side and scroll downside? </p>