From 02ecdd7cb956578a9e95568f36f519d63a7fca04 Mon Sep 17 00:00:00 2001 From: Leonardo Garcia Date: Mon, 10 Jun 2019 22:17:01 -0500 Subject: [PATCH] Update docs emphasizing UICollectionView support --- README.md | 6 +++--- WLEmptyState.podspec | 4 ++-- WLEmptyState/Classes/Misc/WLEmptyState.swift | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 605c80f..e141053 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 { @@ -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** diff --git a/WLEmptyState.podspec b/WLEmptyState.podspec index 524dd9c..20f5749 100644 --- a/WLEmptyState.podspec +++ b/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' } diff --git a/WLEmptyState/Classes/Misc/WLEmptyState.swift b/WLEmptyState/Classes/Misc/WLEmptyState.swift index 0df0645..17855d4 100644 --- a/WLEmptyState/Classes/Misc/WLEmptyState.swift +++ b/WLEmptyState/Classes/Misc/WLEmptyState.swift @@ -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()