LRDTableView is a lightweight custom UITableView to handle easily empty tableViews by showing a label & image and button
To run the example project, clone the repo, and run pod install
from the Example directory first.
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
LRDTableView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "LRDTableView"
Mahmoud Ashraf, [email protected]
LRDTableView is available under the MIT license. See the LICENSE file for more info.