From b7bf3903b769c311e4bd31758dec224fee3f7579 Mon Sep 17 00:00:00 2001 From: Vladislav Sosiuk Date: Fri, 18 Sep 2020 17:16:31 +0300 Subject: [PATCH] Workarond iOS 12.4 crash when using UIDatePicker --- Sources/SubviewsSkeletonables.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/SubviewsSkeletonables.swift b/Sources/SubviewsSkeletonables.swift index b07c5672..8964e950 100644 --- a/Sources/SubviewsSkeletonables.swift +++ b/Sources/SubviewsSkeletonables.swift @@ -14,6 +14,7 @@ extension UIView { extension UITableView { override var subviewsToSkeleton: [UIView] { + guard dataSource?.numberOfSections?(in: self) ?? 0 > 0 else { return [] } return visibleCells + visibleSectionHeaders + visibleSectionFooters } }