Sha256: c52d8faeee06cba9dda94bf1ae998a2949ece719410110f4f2e26247f82a64d8
Contents?: true
Size: 452 Bytes
Versions: 32
Compression:
Stored size: 452 Bytes
Contents
module MotionPrime module TableSectionRefreshMixin def add_pull_to_refresh(options = {}, &block) screen.automaticallyAdjustsScrollViewInsets = false table_view.addPullToRefreshWithActionHandler(block) # block must be a variable screen.setup table_view.pullToRefreshView, styles: [:base_pull_to_refresh] end def finish_pull_to_refresh reload_data table_view.pullToRefreshView.stopAnimating end end end
Version data entries
32 entries across 32 versions & 1 rubygems