Skip to content

mahmoudashraf93/LRDTableView

Repository files navigation

LRDTableView

LRDTableView is a lightweight custom UITableView to handle easily empty tableViews by showing a label & image and button

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Examples

All you have to do is set your UITableView's class to LRDTableView in the IB identity inspector and connect the outlet

@IBOutlet weak var tableView: LRDTableView!
// add action to the LRDTableView Actionbutton
self.tableView.actionButton.addTarget(self, action: #selector(self.fillTableView), for: UIControlEvents.touchUpInside)

// you should set this to true only if you're not waiting to fetch data and populate tableView
self.tableView.shouldListenToFirstReload = true

// distance from top label to LRDTableViews top default is 10
self.tableView.topDistance = 50.0

// distance between elements in LRDTableViews the default is 100
self.tableView.spacing = 50.0

Installation

LRDTableView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "LRDTableView"

Author

Mahmoud Ashraf, [email protected]

License

LRDTableView is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published