{"repo":"nachonavarro/Pages","free":true,"listed":false,"github":"https://github.com/nachonavarro/Pages","clone":"git clone https://github.com/nachonavarro/Pages.git","description":"📖 A lightweight, paging view solution for SwiftUI","language":"Swift","stars":867,"topics":["swiftui","swift","ui","ios","paging","swift-package","ui-library"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Getting Started Customization Installation Getting Started Installation Pages is available using the Swift Package Manager: Using Xcode 11, go to File - Swift Packages - Add Package Dependency and enter https://github.com/nachonavarro/Pages Basic usage Using Pages is as easy as: One can also use Pages with dynamic content: How it works Pages uses a function builder to accomplish a SwiftUI feel while using a UIPageViewController under the hood. As in VStack or HStack , the current limit of pages to add in a static way using the Pages view is 10. If more are needed use a ModelPages instead. The Pages view will take up all the available space it is given. Note: The Pages view needs more than one page. Otherwise the compiler treats what's inside Pages as a closure. Customization The following aspects of Pages can be customized: - navigationOrientation : Whether to paginate horizontally or vertically. Default is .horizontal . - transitionStyle : Whether to perform a page curl or a scroll effect on page turn. The first two examples in the GIFs above use a scroll effect, and the last one uses page curl. Default is .scroll . - bounce : Whether to perform a bounce effect when the user tries to scroll past the number of pages. Default is true . - wrap : Whether to wrap the pages once a user tries to go to the next page after the last page. Similarly whether to go to the last page when the user scrolls to the previous page of the first page. Default is false . - hasControl : Whether to ","default_branch":null,"files":null,"tree":[],"storefront":"/r/nachonavarro","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nachonavarro/Pages/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."}