malkouz / listplaceholder Goto Github PK
View Code? Open in Web Editor NEWListPlaceholder is a swift library allows you to easily add facebook style animated loading placeholder to your tableviews or collection views.
License: MIT License
ListPlaceholder is a swift library allows you to easily add facebook style animated loading placeholder to your tableviews or collection views.
License: MIT License
Hi i encountered an issue with the library unfortunately it allows you add multiple cutouts to cell which creates an visual bug by taking the previous cutout into the draw function the solution is below
fileprivate func addCutoutView()
{
var hasCutout: Bool = false
for view in self.subviews {
if !(view is CutoutView) {
view.alpha = 0
} else {
hasCutout = true
}
}
if !hasCutout {
let cutout = CutoutView()
cutout.frame = self.bounds
cutout.backgroundColor = UIColor.clear
self.addSubview(cutout)
cutout.setNeedsDisplay()
cutout.boundInside(self)
self.ld_setCutoutView(cutout)
}
}
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()
Why is the background view of table view is white? Can we change the color?
Does it work with tableview setup with custom cell from .xib file?
I am having problem in showing loader in tableview with cell from .xib.
Any help?
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.
I am getting one issue in this sample.
In my app i have pagination ,
For first page doing like this
First time its working fine, but when i am adding more data some times its showing loading behaviour in some cell.
CutoutView always white even if cell background is clear and contentView also clear
this problem in iOS 9.list loader not finish for some item in tableview cell
When we have alot of cell the tableView was not scrollable
normal cell reuse corver placeholder,and the placeHolder only need one, too many is not good.
Please tell me how to change color its always white.Thank in advance
please add demo how to work with objective c??
[!] 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
Hello,
I am using a collection view. when i use collectionView.showloader() nothing happens.
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];
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.
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?
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.
I tried to make UIStackView conform to ListLoadable
and ld_visibleContentViews
become its arrangedSubviews
but it won't help
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?
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 ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.