#PullToReflesh
![](https://d13yacurqjgara.cloudfront.net/users/141880/screenshots/2542648/dailyui-094.gif "Demo GIF Animation")Dribbble网址:Daily-UI-094-News
let tableViewWrapper = PullToRefleshView(scrollView: yourTableView)
bodyView.addSubview(tableViewWrapper)
The color of the wrapper will be same as your scrollView's background color.
tableViewWrapper.didPullToRefresh = {
//you can do anythings you want after beginning to reflesh
}
You can end the reflesh simplily
tableViewWrapper.endReflesh()