# Refresh **Repository Path**: bruce_01/Refresh ## Basic Information - **Project Name**: Refresh - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-09 - **Last Updated**: 2021-10-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![Refresh](https://github.com/wxxsw/Refresh/blob/master/Images/logo.png)

codebeat badge


- [Features](#features) - [Usage](#usage) - [Installation](#installation) - [Requirements](#requirements) - [License](#license) ## Demo Open `Refresh.xcodeproj` and run `Demo` target. ## Features - [x] Support drop-down refresh and scroll up to load more. - [x] Fully based on SwiftUI, no UIViewRepresentable, no UIViewControllerRepresentable. - [x] Compatible with NavigationView, TabView. - [x] Fully customizable UI. - [x] Easy to animate. - [x] Simple API. ## Usage ```swift ScrollView { RefreshHeader(refreshing: $headerRefreshing, action: { self.reload() }) { progress in if self.headerRefreshing { Text("refreshing...") } else { Text("Pull to refresh") } } ForEach(items) { item in YourCell(item: item) } RefreshFooter(refreshing: $footerRefreshing, action: { self.loadMore() }) { if self.noMore { Text("No more data !") } else { Text("refreshing...") } } .noMore(noMore) .preload(offset: 50) } .enableRefresh() ``` ## Installation ### Swift Package Manager 1. Select `Xcode -> File -> Swift Packages -> Add Package Dependency...` 2. Enter `https://github.com/wxxsw/Refresh`. 3. Click `Next`, then select the version, complete. ## Requirements - iOS 13+ - Xcode 11+ - Swift 5+ ## License Refresh is released under the MIT license. [See LICENSE](https://github.com/wxxsw/Refresh/blob/master/LICENSE) for details.