From d57a7d0589e353d012c866962ac68848b2dde0e4 Mon Sep 17 00:00:00 2001 From: jithin Date: Wed, 20 Nov 2024 13:59:18 +0530 Subject: [PATCH] Remove layout subviews to fix infinite loop crash: https://github.com/Juanpe/SkeletonView/issues/495 --- .../Sources/Internal/UIKitExtensions/UIView+Swizzling.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/SkeletonViewCore/Sources/Internal/UIKitExtensions/UIView+Swizzling.swift b/SkeletonViewCore/Sources/Internal/UIKitExtensions/UIView+Swizzling.swift index 3c257161..8854df92 100644 --- a/SkeletonViewCore/Sources/Internal/UIKitExtensions/UIView+Swizzling.swift +++ b/SkeletonViewCore/Sources/Internal/UIKitExtensions/UIView+Swizzling.swift @@ -17,7 +17,6 @@ extension UIView { @objc func skeletonLayoutSubviews() { guard Thread.isMainThread else { return } - skeletonLayoutSubviews() guard sk.isSkeletonActive else { return } layoutSkeletonIfNeeded() }