ListPlaceholder is a swift library allows you to easily add facebook style animated loading placeholder to your tableviews or collection views.

Overview

ListPlaceholder

Version License Platform

ListPlaceholder

Facebook news feed style animation

Features

ListPlaceholder is a swift library allows you to easily add facebook style animated loading placeholder to your tableviews, collection views or custom views.

Installation

CocoaPods (Recommended)

  1. Install CocoaPods
  2. Add this repo to your Podfile
target 'Example' do
# IMPORTANT: Make sure use_frameworks! is included at the top of the file
use_frameworks!
platform :ios, '8.0'
pod 'ListPlaceholder'
end
  1. Run pod install
  2. Open up the .xcworkspace that CocoaPods created
  3. Done!

Manually

Simply download the ListLoader.swift file from here into your project, make sure you point to your projects target

Usage

import ListPlaceholder

UITableView usage

//to show the loader
tableView.reloadData()
tableView.showLoader()

//to hide the loader
tableView.hideLoader()

UICollectionView usage

//to show the loader
collectionView.reloadData()
collectionView.layoutIfNeeded()
collectionView.showLoader()

//to hide the loader
collectionView.hideLoader()

UIView usage

//to show the loader

customView.showLoader()

//to hide the loader
customView.hideLoader()

Also the placeholder is now supporting in Objective-C language

@import ListPlaceholder;

//to show the loader
[_customView showLoader];
//to hide the loader
[_customView hideLoader];

Example project

Take a look at the example project over here

  1. Download it
  2. Open the Example.xcworkspace in Xcode
  3. Enjoy!

Author

Moayad Al kouz, [email protected]

License

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

Comments
  • Show Placeholder while App is fetching data from API

    Show Placeholder while App is fetching data from API

    Hi @malkouz ,

    Great Library !!

    But,

    I want show placeholder while app is getting data from API, My datasource Array is initialize after parsing data, and meanwhile I need to show placeholder.

    So When datasource Array is empty this is not working.

    opened by toseefkhilji 4
  • Custom list placeholder view?

    Custom list placeholder view?

    Hi @malkouz! 😄 This looks promising but the ability to not be able to define a custom view as the placeholder is an absolute deal breaker for me. Do you plan to support this functionality in the future?

    opened by Daltron 3
  • How to Show this effect on  Empty table View

    How to Show this effect on Empty table View

    Hi Malkouz your library is much appreciated .

    I want to display the placeholders on the screen while in the background api is being called i have already checked a similar question in the issues section but have not found any leads as i am new ;) .

    My tableView populates when the API has done fetching data from it How can i show placeholders before populating that please?

    opened by mayankwadhwa111 2
  • Fix for darkmode

    Fix for darkmode

    There was a problem with showing loader in dark mode: The cover area in CutoutView was always white. How I resolved: Recursively find nearest available parent's backgroundColor to fill the cover area in CutoutView The result: Before: image

    After: image

    An example for dark mode/light mode was also added

    opened by bigearsenal 1
  • Problem with UIStackView inside UIStackView

    Problem with UIStackView inside UIStackView

    when I implemented an UIView and 2 another UIStackViews inside a horizontal UIStackView, The loaders, which are showing in 2 stackviews, was not correct. It treats UIStackView inside another UIStackView as if it were an UIView without subviews. If all arrangedSubviews in UIStackView are not UIStackView, it works fine. ezgif com-video-to-gif(2) I tried to make UIStackView conform to ListLoadable and ld_visibleContentViews become its arrangedSubviews but it won't help

    opened by bigearsenal 1
  • Views inside StackView not working properly

    Views inside StackView not working properly

    Hi Everyone, I am using this amazing library, it is working fine. But It is not working for stackViews in tableView or collectionView, it consider all the subviews in the stackView as a single View and highlight the whole stackView.

    Does anyone have any idea to resolve this issue ?

    opened by Muhammad-AhmadRafique 1
  • objective c pod issue

    objective c pod issue

    [!] Pods written in Swift can only be integrated as frameworks; add use_frameworks! to your Podfile or target to opt into using it. The Swift Pod being used is: ListPlaceholder

    opened by Daniyal073 0
  • Not Showing Placeholder animation when working with IGListKit CollectionView

    Not Showing Placeholder animation when working with IGListKit CollectionView

    It worked when I tried your awesome ListPlaceholder on a simple UICollectionView and UITableView where the cell only contains simple components, but I still haven't got a clue to implement it since I'm using IGListKit CollectionView

    Is there any chance you tried ListPlaceHolder on IGListKit? if so please let me know. Thank you very much.

    opened by ddl-elo 0
  • Showing loader on customView only

    Showing loader on customView only

    I have a CustomView inside tableviewcell ContentView so the loader only showing on CustomView and not inside the content like I have UILabel, UIImage etc inside that CustomView but not showing on that particular controls. Any way I can show the loader on all the control inside that CustomView? I am using following code to show the loader on table:

    self.tblSchedule.reloadData() self.tblSchedule.showLoader()

    opened by NirajCapermint 0
  • I am having issue in Objective C

    I am having issue in Objective C

    I am using ListPlaceholder in Objective C but it's not working properly.

    I am using below code to display.

    @import ListPlaceholder;
    
    [tableview reloadData];
    [tableview showLoader];
    
    
    
    opened by parthpatel1105 0
Owner
Moayad Al Kouz
Team Leader @Mawdoo3
Moayad Al Kouz
WLEmptyState is an iOS based component that lets you customize the view when the dataset of a UITableView or a UICollectionView is empty.

Table of Content Overview Running an Example Project Installing WLEmptyState Configuring WLEmptyState Using WLEmptyState Customizing WLEmptyState Cont

Wizeline 315 Dec 5, 2022
Placeholder views based on content, loading, error or empty states

StatefulViewController A protocol to enable UIViewControllers or UIViews to present placeholder views based on content, loading, error or empty states

Alexander Schuch 2.1k Dec 8, 2022
Placeholder views based on content, loading, error or empty states

StatefulViewController A protocol to enable UIViewControllers or UIViews to present placeholder views based on content, loading, error or empty states

Alexander Schuch 2.1k Dec 8, 2022
Easily add vertical and horizontal pull to refresh to any UIScrollView. Can also add multiple pull-to-refesh views at once.

This is a fork from the famous SVPullToRefresh pod with 2 additional functionalities: Can add multiple pull-to-refresh views into one single UIScrollV

Hoang Tran 42 Dec 28, 2022
You can easily add awesome animated context menu to your app.

Context-Menu.iOS You can easily add awesome animated context menu to your app. Made in Check this [project on dribbble] (https://dribbble.com/shots/17

Yalantis 1.8k Nov 17, 2022
Newly is a drop in solution to add Twitter/Facebook/Linkedin style, new updates/tweets/posts available button

Newly is a drop in solution to add Twitter/Facebook/Linkedin style, new updates/tweets/posts available button. It can be used to notify user about new content availability and can other actions can be triggers using its delegate method.

Dhiraj Rajendra Jadhao 197 Sep 22, 2022
Jorge Ovalle 305 Oct 11, 2022
Tutorials from sparrowcode.io website. You can add new, translate or fix typos. Also you can add your apps from App Store for free.

Tutorials from sparrowcode.io website. You can add new, translate or fix typos. Also you can add your apps from App Store for free.

Sparrow Code 31 Jan 3, 2023
Tutorials from sparrowcode.io website. You can add new, translate or fix typos. Also you can add your apps from App Store for free.

Страницы доступны на sparrowcode.io/en & sparrowcode.io/ru Как добавить свое приложение Добавьте элемент в json /ru/apps/apps.json. Если ваше приложен

Sparrow Code 30 Nov 25, 2022
TableViews - Emoji Table View For iOS With Swift

TableViews Hello! This is EmojiTableView. Let me introduce you my first app when

null 0 Jan 2, 2022
Custom transition between viewcontrollers holding tableviews

Custom transition between viewcontrollers holding tableviews. Each cell is animated to simulate a 'wave effect'. Read more about transitions here and

Andrea Mazzini 2.4k Dec 21, 2022
Flash-Chat - Firebase Cloud Firestore, TableViews and Cocoapod Dependencies

Flash-Chat Firebase Cloud Firestore, TableViews and Cocoapod Dependencies What I

null 0 Jan 19, 2022
MSFlightMapView allows you to easily add and animate geodesic flights to Google map

MSFlightMapView Demo Requirements iOS 10.0+ Xcode 9.0+ Installation Just add the MSFlightMapView folder to your project. or use CocoaPods: pod 'MSFlig

Muhammad Abdul Subhan 48 Aug 13, 2022
A Swift utility to make updating table views/collection views trivially easy and reliable.

ArrayDiff An efficient Swift utility to compute the difference between two arrays. Get the removedIndexes and insertedIndexes and pass them directly a

Adlai Holler 100 Jun 5, 2022
LoginKit is a quick and easy way to add Facebook and email Login/Signup UI to your app.

LoginKit About LoginKit is a quick and easy way to add Facebook and email Login/Signup UI to your app. If you need to quickly prototype an app, create

Icalia Labs 653 Dec 17, 2022
Add to-do List - a mobile application where you can add your to-dos and follow them

This project, is a mobile application where you can add your to-dos and follow them. You can add your to-do's.

Cem 4 Apr 1, 2022
Quillow is an elegant book management app on the App Store that allows you to search, add and track the books you've consumed.

Quillow Quillow is an elegant book management app on the App Store that allows you to search, add and track the books you've consumed. Please use the

Daniyal Mohammed 3 Aug 29, 2022
Visualize your dividend growth. DivRise tracks dividend prices of your stocks, gives you in-depth information about dividend paying stocks like the next dividend date and allows you to log your monthly dividend income.

DivRise DivRise is an iOS app written in Pure SwiftUI that tracks dividend prices of your stocks, gives you in-depth information about dividend paying

Kevin Li 78 Oct 17, 2022
This component allows for the transfer of data items between collection views through drag and drop

Drag and Drop Collection Views Written for Swift 4.0, it is an implementation of Dragging and Dropping data across multiple UICollectionViews. Try it

Michael Michailidis 508 Dec 19, 2022