Skip to content

Commit

Permalink
Try user suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathew Stevenson committed Feb 5, 2024
1 parent 5699404 commit 0027e29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ private extension UIView {
}) { subview in
subview.recursiveShowSkeleton(skeletonConfig: config)
}
layoutSkeletonIfNeeded()

if let root = root {
_flowDelegate?.didShowSkeletons(rootView: root)
Expand All @@ -126,6 +127,7 @@ private extension UIView {
}) { subview in
subview.recursiveUpdateSkeleton(skeletonConfig: config)
}
layoutSkeletonIfNeeded()

if let root = root {
_flowDelegate?.didUpdateSkeletons(rootView: root)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import UIKit
extension UIView {

func startTransition(transitionBlock: @escaping () -> Void) {
layoutIfNeeded()

guard let transitionStyle = _currentSkeletonConfig?.transition,
transitionStyle != .none else {
transitionBlock()
Expand Down

0 comments on commit 0027e29

Please sign in to comment.