https://github.com/kenanatmaca/kemptyview
Configurable TableView & CollectionView Empty Page
https://github.com/kenanatmaca/kemptyview
collectionview data empty-view ios swift tableview xcode
Last synced: 11 months ago
JSON representation
Configurable TableView & CollectionView Empty Page
- Host: GitHub
- URL: https://github.com/kenanatmaca/kemptyview
- Owner: KenanAtmaca
- License: mit
- Created: 2019-07-24T13:58:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-29T12:05:50.000Z (over 6 years ago)
- Last Synced: 2025-05-01T12:13:13.852Z (11 months ago)
- Topics: collectionview, data, empty-view, ios, swift, tableview, xcode
- Language: Swift
- Homepage:
- Size: 484 KB
- Stars: 15
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KEmptyView





## Advantages
- [X] Simply use.
- [X] Configurable.
## Requirements
- Xcode 9.0 +
- iOS 9.0 or greater
## Installation
### CocoaPods
1. Install [CocoaPods](http://cocoapods.org)
2. Add this repo to your `Podfile`
```ruby
target 'Example' do
use_frameworks!
pod 'KEmptyView'
end
```
3. Run `pod install`
4. Open up the new `.xcworkspace` that CocoaPods generated
5. Whenever you want to use the library: `import KEmptyView`
### Manually
1. Simply download the `KEmptyView` source files and import them into your project.
## Usage
```Swift
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.
## License
Usage is provided under the [MIT License](http://http//opensource.org/licenses/mit-license.php). See LICENSE for the full details.