diff --git a/Examples/iOS Example/Sources/ViewController.swift b/Examples/iOS Example/Sources/ViewController.swift index cb80e51c..bf823836 100644 --- a/Examples/iOS Example/Sources/ViewController.swift +++ b/Examples/iOS Example/Sources/ViewController.swift @@ -181,6 +181,7 @@ extension ViewController: SkeletonTableViewDataSource { func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "CellIdentifier", for: indexPath) as! Cell cell.label1.text = "cell -> \(indexPath.row)" + cell.textField.isHidden = indexPath.row == 0 return cell } diff --git a/SkeletonViewCore/Sources/Internal/UIKitExtensions/UIView+Transitions.swift b/SkeletonViewCore/Sources/Internal/UIKitExtensions/UIView+Transitions.swift index 66b3a610..ce90bbee 100644 --- a/SkeletonViewCore/Sources/Internal/UIKitExtensions/UIView+Transitions.swift +++ b/SkeletonViewCore/Sources/Internal/UIKitExtensions/UIView+Transitions.swift @@ -6,7 +6,9 @@ extension UIView { func startTransition(transitionBlock: @escaping () -> Void) { guard let transitionStyle = _currentSkeletonConfig?.transition, - transitionStyle != .none else { + transitionStyle != .none, + // transition causes hidden view to show + !isHidden else { transitionBlock() return }