-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Description
Describe your issue here.
What type of issue is this? (place an x in one of the [ ])
- [ x ] bug
Requirements (place an x in each of the [ ])
- [x ] I've read and understood the Contributing guidelines and have done my best effort to follow them.
- [ x] I've read and agree to the Code of Conduct.
- [x ] I've searched for any related issues and avoided creating a duplicate issue.
Bug Report
SkeletonView Environment:
SkeletonView version: 1.31.0
Xcode version: Version 15.4 (15F31d)
Swift version: 5.10
Steps to reproduce:
Please replace this with the steps to reproduce the behavior.
- Change rootViewController
- Previous controller unable to deinit because of SkeletonCollectionViewDataSource
- Attached screenshot
Expected result:
App should release object and view Controller should deinit
Actual result:
Getting strong object in memory even after changing pop or dismiss view controller
Attachments:
Logs, screenshots, sample project, funny gif, etc.
code,
extension DashboardVC : SkeletonCollectionViewDataSource {
func collectionSkeletonView(_ skeletonView: UICollectionView, cellIdentifierForItemAt indexPath: IndexPath) -> SkeletonView.ReusableCellIdentifier {
return "ConsultCell"
}
func collectionSkeletonView(_ skeletonView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
var count = self.arrRecentConsult.count
if count == 0 {
count = 1
}
return count
}
func collectionSkeletonView(_ skeletonView: UICollectionView, skeletonCellForItemAt indexPath: IndexPath) -> UICollectionViewCell? {
let cell = skeletonView.dequeueReusableCell(withReuseIdentifier: "ConsultCell", for: indexPath) as! ConsultCell
return cell
}
}vladimirDarksy
Metadata
Metadata
Assignees
Labels
No labels

