- Simply use.
- Configurable.
- Xcode 9.0 +
- iOS 9.0 or greater
- Install CocoaPods
- Add this repo to your
Podfile
target 'Example' do
use_frameworks!
pod 'KEmptyView'
end
- Run
pod install
- Open up the new
.xcworkspace
that CocoaPods generated - Whenever you want to use the library:
import KEmptyView
- Simply download the
KEmptyView
source files and import them into your project.
let emptyView = KEmptyView()
emptyView.setTitleCustomize(title: "There were no results!", textColor: .gray, font: UIFont(name: "Futura", size: 19))
emptyView.isTapScreen = true
emptyView.animation = .alpha
emptyView.screenTapAction = {
print("Reload!")
}
tableView.emptyView = emptyView
tableView.reloadEmpty() // non-animated use
tableView.reloadEmptyAnimation() // if you are going to use animated
See the 'KEmptyTable' sample project for more.
Usage is provided under the MIT License. See LICENSE for the full details.