CRAnimation/CRRefresh

Change Title label text

nikeshakya opened this issue · 2 comments

--> Is there any way to modify the title texts from "Pull down to refresh", "Release to refresh" to something else ?

apart from changing the value in Localizable.string file

Yes, like this

let normalRefresh = NormalHeaderAnimator()
normalRefresh.releaseToRefreshDescription = "your release text"
normalRefresh.loadingDescription = "your loading text"
normalRefresh.pullToRefreshDescription = "your pull to refresh text"
yourTableView.cr.addHeadRefresh(animator: normalRefresh) { [weak self] in
            /// start refresh
            /// Do anything you want...
        }