Skip to content

Commit

Permalink
Merge pull request #33 from wizeline/docs/update-docs-collectionView-…
Browse files Browse the repository at this point in the history
…support

Update docs emphasizing UICollectionView support
  • Loading branch information
Jorge R Ovalle Z committed Jun 19, 2019
2 parents 8807234 + 02ecdd7 commit 84c9098
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -17,7 +17,7 @@

## Overview

WLEmptyState is an iOS based component that lets you customize the message when the dataset of `UITableView` is empty. We created a sample project with the WLEmptyState component to show how you can use it.
WLEmptyState is an iOS based component that lets you customize the message when the dataset of `UITableView` or `UICollectionView` is empty. We created a sample project with the WLEmptyState component to show how you can use it.

## Running an Example Project

Expand Down Expand Up @@ -60,7 +60,7 @@ The WLEmptyState component uses [Method Swizzling](https://nshipster.com/method-

### Using WLEmptyState

Once you have configured `WLEmptyState`, you can use it for your `UITableViewController`. You need to conform the `WLEmptyStateDataSource` protocol. For example,
Once you have configured `WLEmptyState`, you can use it for your `UITableViewController` or `UICollectionViewController`. You need to conform the `WLEmptyStateDataSource` protocol. For example,

```Swift
class YourTableViewController: UITableViewController, WLEmptyStateDataSource {
Expand All @@ -73,7 +73,7 @@ class YourTableViewController: UITableViewController, WLEmptyStateDataSource {
}
```

After you run your project with an empty dataset for a table, you'll be able to see a default `WLEmptyState` view.
After you run your project with an empty dataset for your entity, you'll be able to see a default `WLEmptyState` view.

**Default Image**

Expand Down
4 changes: 2 additions & 2 deletions WLEmptyState.podspec
@@ -1,9 +1,9 @@
Pod::Spec.new do |s|
s.name = 'WLEmptyState'
s.version = '1.0.2'
s.summary = 'Custom view for Empty states on tables'
s.summary = 'Custom view for Empty states on tables or collection entities'

s.description = 'A control to display a place holder in case there\'s no data on a UITableView'
s.description = 'A control to display a place holder in case there\'s no data on a UITableView or UICollectionView'
s.homepage = 'https://github.com/wizeline/WLEmptyState'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Wizeline iOS Team' => 'ios.open@wizeline.com' }
Expand Down
2 changes: 1 addition & 1 deletion WLEmptyState/Classes/Misc/WLEmptyState.swift
Expand Up @@ -9,7 +9,7 @@ import UIKit

public final class WLEmptyState {

/// Calling `configure()` method is necessary to setup the WLEmptyState. It works by method swizzling the UITableView.
/// Calling `configure()` method is necessary to setup the WLEmptyState. It works by method swizzling the UITableView and UICollectionView.
public static func configure() {
UICollectionView.configure()
UITableView.configure()
Expand Down

0 comments on commit 84c9098

Please sign in to comment.