All Projects → simformsolutions → Ssplaceholdertableview

simformsolutions / Ssplaceholdertableview

Licence: mit
SSPlaceholderTableView is Placeholder Library for different different state wise placeHolder for UITableView/UICollectionView. Check https://www.cocoacontrols.com/controls/ssplaceholdertableview

Programming Languages

swift
15916 projects
swift4
162 projects

Projects that are alternatives of or similar to Ssplaceholdertableview

Tabanimated
A skeleton screen framework based on native for iOS. (一个由iOS原生组件映射出骨架屏的框架,包含快速植入,低耦合,兼容复杂视图等特点,提供国内主流骨架屏动画的加载方案,同时支持上拉加载更多、自定制动画。)
Stars: ✭ 2,909 (+7358.97%)
Mutual labels:  uicollectionview, placeholder
Skeletonview
☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
Stars: ✭ 10,804 (+27602.56%)
Mutual labels:  uicollectionview, placeholder
Wlemptystate
WLEmptyState is an iOS based component that lets you customize the view when the dataset of a UITableView or a UICollectionView is empty. We created a sample project with the WLEmptyState component to show how you can use it.
Stars: ✭ 305 (+682.05%)
Mutual labels:  uicollectionview, placeholder
Hgplaceholders
Nice library to show placeholders and Empty States for any UITableView/UICollectionView in your project
Stars: ✭ 2,048 (+5151.28%)
Mutual labels:  uicollectionview, placeholder
Listplaceholder
ListPlaceholder is a swift library allows you to easily add facebook style animated loading placeholder to your tableviews or collection views.
Stars: ✭ 511 (+1210.26%)
Mutual labels:  placeholder, tableview
Parallaxheader
Simple way to add parallax header to UIScrollView/UITableView written in Swift.
Stars: ✭ 808 (+1971.79%)
Mutual labels:  tableview
Skeleton Elements
Skeleton elements - UI for improved perceived performance
Stars: ✭ 27 (-30.77%)
Mutual labels:  placeholder
Gravityslider
🔄 GravitySlider is a beautiful alternative to the standard UICollectionView flow layout.
Stars: ✭ 784 (+1910.26%)
Mutual labels:  uicollectionview
Alignedcollectionviewflowlayout
A collection view layout that gives you control over the horizontal and vertical alignment of the cells.
Stars: ✭ 751 (+1825.64%)
Mutual labels:  uicollectionview
Tangramkit
TangramKit is a powerful iOS UI framework implemented by Swift. It integrates the functions with Android layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,LayoutSizeClass to build your App 自动布局 UIView UITableView UICollectionView
Stars: ✭ 984 (+2423.08%)
Mutual labels:  uicollectionview
Collectionviewpaginglayout
a simple but highly customizable paging layout for UICollectionView.
Stars: ✭ 947 (+2328.21%)
Mutual labels:  uicollectionview
Thinningcoordinator
The UITableView/UICollectionView dataSource/delegate thinning coordinator, help thinning your UIViewController!
Stars: ✭ 25 (-35.9%)
Mutual labels:  uicollectionview
Verticalcardswiper
A marriage between the Shazam Discover UI and Tinder, built with UICollectionView in Swift.
Stars: ✭ 830 (+2028.21%)
Mutual labels:  uicollectionview
Pulsarkit
PulsarKit is a simple and beautiful wrapper around the official UICollectionView API written in pure Swift
Stars: ✭ 8 (-79.49%)
Mutual labels:  uicollectionview
Changeset
Minimal edits from one collection to another
Stars: ✭ 807 (+1969.23%)
Mutual labels:  uicollectionview
Centeredcollectionview
A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift
Stars: ✭ 965 (+2374.36%)
Mutual labels:  uicollectionview
Viewanimator
ViewAnimator brings your UI to life with just one line
Stars: ✭ 6,592 (+16802.56%)
Mutual labels:  uicollectionview
Datagrid
Gem to create tables grids with sortable columns and filters
Stars: ✭ 921 (+2261.54%)
Mutual labels:  tableview
Ascollectionview
A SwiftUI collection view with support for custom layouts, preloading, and more.
Stars: ✭ 878 (+2151.28%)
Mutual labels:  uicollectionview
React Simple Img
🌅 React lazy load images with IntersectionObserver API and Priority Hints
Stars: ✭ 905 (+2220.51%)
Mutual labels:  placeholder

SSPlaceHolderTableView

This is simple, customized and easy state wise PlaceHolder for TableView and CollectionView.

Version License Platform Swift Version PRs Welcome

Example

Requirements

  • iOS 11.0+
  • Xcode 10.0+

Installation

SSPlaceHolderTableView doesn't contain any external dependencies.

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

pod 'SSPlaceHolderTableView'

Usage example

Set UITableView to TableView

alt text

Set UICollectionView to CollectionView

alt text

Set TableView State to Use Placeholder TableView

Usage example

NetworkUnReachableBlock

  • If you want to use inbuild Reachability for API call, You can simply add your API call inside this networkUnReachableBlock.

  • Put this code in viewDidLoad

      tblView.networkUnReachableBlock = {
      // put your API Call here.
      }
    

Loading State

  • You can put this state before your API call or data collecting method.

  • Customisation: In loadingImg param, You can pass your custom image and in loadingLabelTitle you can pass your custom attributed string.

      tblView.setState(.loading(loadingImg: nil, loadingLabelTitle: nil))
    

Data Available State

  • When your data successfully available simply put this line in your code.

      tblView.setState(.dataAvailable(viewController: self))
    

Data UnAvailable State

  • When your data not available simply put this line in your code.

  • Customisation: In noDataImg param, You can pass your custom image for no data and in noDataLabelTitle you can pass your custom attributed string.

      tblView.setState(.noDataAvailable(noDataImg: nil, noDataLabelTitle: nil))
    

No Internet available State

  • When Internet is not available put this line.

  • Customisation: In noInternetImg param You can pass your custom image for no internet state and in noInternetLabelTitle you can pass your custom attributed string.

      tblView.setState(.checkInternetAvaibility(noInternetImg: nil, noInternetLabelTitle: nil))
    

NOTE

  • If you want to use this in UICollectionView Simply replace your collectionView object with tblView in above codes.

Contribute

We would love you for the contribution to SSPlaceHolderTableView, check the LICENSE file for more info.

License

SSPlaceHolderTableView is Distributed under the MIT license. See LICENSE for more information..

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].