Guglielmo Faglioni
795fd7d0f1
Fallback to non-skeleton Header ( #416 )
...
Sometimes my collectionview's header doesn't need to be 'skeletoned' while the content does.
When collectionSkeletonView(_ skeletonView: UICollectionView, supplementaryViewIdentifierOfKind: String, at indexPath: IndexPath) -> ReusableCellIdentifier? returns nil, it's best if we fallback to the non-skeleton header.
2021-07-02 16:05:16 +02:00
Nemanja Markicevic and Juanpe Catalán
9fccaf4fbd
Add prepareCellForSkeleton for UITableView and UICollectionView ( #415 )
...
* Add prepareCellForSkeleton for UITableView and UICollectionView
* Update README to add collectionSkeletonView(_ skeletonView: UICollectionView, prepareCellForSkeleton cell: UICollectionViewCell, at indexPath: IndexPath)
* Update README.md
Co-authored-by: Juanpe Catalán <juanpecm@gmail.com >
2021-06-24 08:09:36 +02:00
Juanpe Catalán
58959a5f9b
Add both skeletonCellForRowAt and skeletonCellForItemAt methods ( #414 )
...
* add skeletonCellForIndexPath
* included in README file the new data source methods
* fix typo in the README file
2021-06-23 17:49:31 +02:00
Richard L Zarth III
6f78f5c378
Replace SkeletonCollectionDataSource.automaticNumberOfRows with UITableView.automaticNumberOfSkeletonRows and UICollectionView.automaticNumberOfSkeletonItems ( #409 )
2021-06-11 22:21:27 +02:00
Richard L Zarth III and Juanpe Catalán
fb83a62f7b
Add SkeletonCollectionDataSource.automaticNumberOfRows Constant ( #401 )
...
* Add automaticNumberOfRows constant to SkeletonCollectionDataSource.
* Update tableView(_:numberOfRowsInSection:) and collectionView(_:numberOfItemsInSection:) to use the new automaticNumberOfRows constant.
* Update README.
* Update README.md
Add an **IMPORTANT!** header to the automaticNumberOfRows mention in the README.
Co-authored-by: Juanpe Catalán <juanpecm@gmail.com >
Co-authored-by: Juanpe Catalán <juanpecm@gmail.com >
2021-06-09 18:45:44 +02:00
Keshavamurthy GN
a246c16cfe
Removed duplicate code in SkeletonCollectionDelegate
...
Removed check for older versions in UIView+Frame
Removed return on single lines (Implicit Returns)
2021-01-18 18:41:23 +05:30
Juanpe Catalán
3dcfebda82
refactor: swiftlint changes
2020-09-11 01:10:04 +02:00
Quentin CLEMENT
3d8612ec0e
Skeleton Data Source, in TableView : fix restore row height to add back the original row height
...
(otherwise it just add back the calculateRowHeight, previously based on the estimated row height)
Avoid to change the row height in calculateRowHeight(), because the name of the method doesn't say that, and then it juste broke the utilisation of the rowHeight
2020-01-23 11:41:49 +01:00
Nikita Nikitsky
264195bf16
Add support skeletonable headers and footers of UITableView and UICollectionView
2019-12-01 14:37:37 +04:00
Juanpe Catalán
14ef5012f3
feat: refactor Swift format
2019-08-22 15:11:01 +02:00
Juanpe Catalán
d5656b9715
feat: change some methods about animate transition
2019-08-22 03:00:09 +02:00
Eduard Bosch Bertran
623b326e7b
Merge pull request #158 from eduardbosch/feature/allow_updating_skeleton_layers
...
Update skeleton layout and configuration
2019-06-25 23:32:16 +02:00
Eduard Bosch Bertran
f53b722b52
refactor: Use SkeletonConfig to show and update skeleton views
2019-06-18 23:21:54 +02:00
Eduard Bosch Bertran
bd02497124
fix: Skeleton new cells if container is skeletoned
2019-06-18 23:21:54 +02:00
Guglielmo Faglioni
6784de9597
fix - support UICollectionView's headers and footers (UICollectionReusableView)
2019-06-18 17:44:50 +02:00
Isaac Halvorson
ad5cf2a21f
Fix a couple small typos in README and a method signature
2018-07-19 09:37:15 -05:00
Juanpe Catalán
6604c64b03
feat: Add dummy delegate
2018-04-30 13:38:43 +02:00
Juanpe Catalán
fcae5ac799
feat: Add UIApplication notifications observers
...
feat: Create SkeletonFlow
2018-02-08 21:46:24 +01:00
Renato Mendes
6e769ed0d4
Resolves the conflict caused by some changes to the CollectionSkeletonProtocol scope, and changes the collectionView feature to the new architecture
2018-02-06 20:22:33 -02:00
Juanpe Catalán
db1e789aa5
feat: Support UITableView with AutomaticDimension
2018-02-02 17:57:50 +01:00
Renato Mendes
c49e4505c8
Adjusts to add CollectionView to SkeletonView
2017-11-28 16:45:11 -02:00
Juanpe
9dff884c07
feat: renamed SkeletonTableViewDataSource protocol
2017-11-08 18:54:00 +01:00
Juanpe Catalán
7f18fdd6c8
feat: Initial commit. Generate project with SwiftPlate
2017-11-07 20:10:53 +01:00