back to home

samvermette / SVPullToRefresh

Give pull-to-refresh & infinite scrolling to any UIScrollView with 1 line of code.

4,792 stars
1,085 forks
148 issues
Objective-CRuby

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing samvermette/SVPullToRefresh in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/samvermette/SVPullToRefresh)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

SVPullToRefresh + SVInfiniteScrolling These UIScrollView categories makes it super easy to add pull-to-refresh and infinite scrolling fonctionalities to any UIScrollView (or any of its subclass). Instead of relying on delegates and/or subclassing , SVPullToRefresh uses the Objective-C runtime to add the following 3 methods to : Installation From CocoaPods Add to your Podfile or if you're feeling adventurous. Manually _**Important note if your project doesn't use ARC**: you must add the compiler flag to and in Target Settings > Build Phases > Compile Sources._ • Drag the folder into your project. • Add the **QuartzCore** framework to your project. • Import and/or Usage (see sample Xcode project in ) Adding Pull to Refresh or if you want pull to refresh from the bottom If you’d like to programmatically trigger the refresh (for instance in ), you can do so with: You can temporarily hide the pull to refresh view by setting the property: Customization The pull to refresh view can be customized using the following properties/methods: You can access these properties through your scroll view's property. For instance, you would set the property using: Adding Infinite Scrolling If you’d like to programmatically trigger the loading (for instance in ), you can do so with: You can temporarily hide the infinite scrolling view by setting the property: Customization The infinite scrolling view can be customized using the following methods: You can access these properties through your scroll view's property. Under the hood SVPullToRefresh extends by adding new public methods as well as a dynamic properties. It uses key-value observing to track the scrollView's . Credits SVPullToRefresh is brought to you by Sam Vermette and contributors to the project. If you have feature suggestions or bug reports, feel free to help out by sending pull requests or by creating new issues. If you're using SVPullToRefresh in your project, attribution would be nice. Big thanks to @seb_morel for his Demistifying the Objective-C runtime talk which really helped for this project. Hat tip to Loren Brichter for inventing pull-to-refresh.