Swiftpack.co - Nayzus/RefreshableScrollView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Nayzus/RefreshableScrollView
Pull to Refresh for SwiftUI
.package(url: "https://github.com/Nayzus/RefreshableScrollView.git", from: "v1.0.2")

RefreshableScrollView SwiftUI

Installation

From Xcode 11, you can use Swift Package Manager to add Kingfisher to your project.

  1. Select File > Swift Packages > Add Package Dependency. Enter https://github.com/nayzus/RefreshableScrollView.git in the "Choose Package Repository" dialog.
  2. In the next page, specify the version resolving rule.
  3. After Xcode checking out the source and resolving the version, you can choose the "DateGrid" library and add it to your app target.

Usage

    RefreshableScrollView(onRefresh: { control in
        DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
            control.endRefreshing()
        }
    }, refreshTitle: "Pull me!!!") {
        ForEach(0...50, id: \.self) { item in
            Text(String(item))
        
                .frame(minWidth: 0, maxWidth: .infinity, minHeight: 100 , maxHeight: 100, alignment: .center)
                .background(Color.gray)
                .padding(10)
                
        }
    }

GitHub

link
Stars: 3
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

10 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics