Skip to content

Latest commit

 

History

History
87 lines (47 loc) · 3.23 KB

README-EN.md

File metadata and controls

87 lines (47 loc) · 3.23 KB

title

Feature

  • Provides a default manager to support UICollectionView & UITableView.
  • You can customize the manager to support any view.
  • Empty page can be any kind of view.
  • You can set a custom manager to replace the default manager.
  • A custom manager can be set to globally replace the default manager.
  • We preloaded several sets of templates to make it easy to build empty pages.
  • We have a pre-configured set of state managers for non-networking or more.

Usage

Here is a simple example of binding a custom view to a UICollectionview:

let customEmptyView = CustomEmptyView()
collectionView.ep.set(emptyView: customEmptyView)

After the UICollectionview executes reloadData() , EmptyPage determines whether the data in the Datasource is empty, and then decides whether to display the empty view.

Installation

CocoaPods

If you use CocoaPods to manage your dependencies, simply add UIFontComplete to your Podfile:

pod 'EmptyPage'

Swift Package Manager

The Swift Package Manager is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.

Using Xcode 11.0+ go to your project file and enter the project URL of this repository:

https://github.com/linhay/EmptyPage

Requirements

  • iOS 9.0+
  • Swift 4.0+

Next Steps

We prepared a wiki page. You can find tons of useful things there.

  • Installation Guide - Follow it to integrate EmptyPage into your project.
  • Cheat Sheet- Curious about what EmptyPage could do and how would it look like when used in your project? See this page for useful code snippets. If you are already familiar with EmptyPage, you could also learn new tricks to improve the way you use EmptyPage!
  • API Reference - Lastly, please remember to read the full whenever you may need a more detailed reference.

Contact

Follow and contact me on Twitter or Sina Weibo. If you find an issue, just open a ticket. Pull requests are warmly welcome as well.

License

EmptyPage is released under the Apache License 2.0 license. See LICENSE for details.