diff --git a/Examples/iOS Example/Sources/Assets.xcassets/AccentColor.colorset/Contents.json b/Examples/iOS Example/Sources/Assets.xcassets/AccentColor.colorset/Contents.json index 22c4bb0a..1722aea5 100644 --- a/Examples/iOS Example/Sources/Assets.xcassets/AccentColor.colorset/Contents.json +++ b/Examples/iOS Example/Sources/Assets.xcassets/AccentColor.colorset/Contents.json @@ -2,13 +2,8 @@ "colors" : [ { "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "1.000", - "green" : "1.000", - "red" : "1.000" - } + "platform" : "universal", + "reference" : "systemBlueColor" }, "idiom" : "universal" }, diff --git a/SkeletonViewCore/Sources/Internal/SkeletonExtensions/SubviewsSkeletonables.swift b/SkeletonViewCore/Sources/Internal/SkeletonExtensions/SubviewsSkeletonables.swift index 17a87880..aaf0c9a4 100644 --- a/SkeletonViewCore/Sources/Internal/SkeletonExtensions/SubviewsSkeletonables.swift +++ b/SkeletonViewCore/Sources/Internal/SkeletonExtensions/SubviewsSkeletonables.swift @@ -21,7 +21,18 @@ extension UITableView { // Some developer trying to call `view.showAnimatedSkeleton()` // when the request or data is loading which sometimes happens before the ViewDidAppear guard window != nil else { return [] } - return subviews + + var result = [UIView]() + + for subview in subviews { + if String(describing: type(of: subview)) == "UITableViewWrapperView" { + result.append(contentsOf: subview.subviews) + } else { + result.append(subview) + } + } + + return result } }