{"repo":"gh123man/SwiftUI-LazyPager","free":true,"listed":false,"github":"https://github.com/gh123man/SwiftUI-LazyPager","clone":"git clone https://github.com/gh123man/SwiftUI-LazyPager.git","description":"A SwiftUI, lazy loaded, paging, panning, and zooming view for images and more","language":"Swift","stars":480,"topics":["swift","swiftui","ios"],"license":"MIT","category":"mobile-apps","readme_excerpt":"LazyPager for SwiftUI A buttery smooth, lazy loaded, panning, zooming, and gesture dismissible view pager view for SwiftUI. The goal of this package is to expose a simple SwiftUI interface for a fluid and seamless content viewer. Unlike other pagers for SwiftUI - this is built on top of UIKit APIs exposing features not yet available in SwiftUI. Horizontal The above example is from dateit demonstrating the capabilities of this library. Note: the overlay is custom and can be added by putting LazyPager inside a ZStack . Vertical The above example can be found in the example project. Usage Add the Swift Package 1. Right click on your project - Add Package 2. In the search bar paste: https://github.com/gh123man/LazyPager 3. Click Add Package Or add the package to your Package.swift if your project is a Swift package. Examples Simple Example A simple image pager that displays images by name from your app assets. That's it! Detailed Example Vertical paging For a full working example, open the sample project in the examples folder, or check out the code here Features - All content is lazy loaded. By default content is pre-loaded 3 elements ahead and behind the current index. - Display any kind of content - not just images! - Horizontal or Vertical paging. - Lazy loaded views are disposed when they are outside of the pre-load frame to conserve resources. - Enable zooming and panning with .zoomable(min: CGFloat, max: CGFloat) . - Double tap to zoom is also supported through .zoomable m","default_branch":null,"files":null,"tree":[],"storefront":"/r/gh123man","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gh123man/SwiftUI-LazyPager/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}