File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
SkeletonViewCore/Sources/Internal/UIKitExtensions Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,8 @@ private extension UIView {
105
105
} ) { subview in
106
106
subview. recursiveShowSkeleton ( skeletonConfig: config)
107
107
}
108
-
108
+ layoutSkeletonIfNeeded ( )
109
+
109
110
if let root = root {
110
111
_flowDelegate? . didShowSkeletons ( rootView: root)
111
112
}
@@ -126,7 +127,8 @@ private extension UIView {
126
127
} ) { subview in
127
128
subview. recursiveUpdateSkeleton ( skeletonConfig: config)
128
129
}
129
-
130
+ layoutSkeletonIfNeeded ( )
131
+
130
132
if let root = root {
131
133
_flowDelegate? . didUpdateSkeletons ( rootView: root)
132
134
}
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import UIKit
5
5
extension UIView {
6
6
7
7
func startTransition( transitionBlock: @escaping ( ) -> Void ) {
8
+ layoutIfNeeded ( )
9
+
8
10
guard let transitionStyle = _currentSkeletonConfig? . transition,
9
11
transitionStyle != . none else {
10
12
transitionBlock ( )
You can’t perform that action at this time.
0 commit comments