Skip to content

Commit

Permalink
Fix extra timer scheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
noahsmartin committed Sep 10, 2024
1 parent 62d6108 commit f7d08ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SnapshotPreviewsCore/ExpandingViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public final class ExpandingViewController: UIHostingController<EmergeModifierVi

public func updateScrollViewHeight() {
// Timeout limit
if timer == nil {
if timer == nil && heightAnchor != nil && supportsExpansion && firstScrollView != nil {
startTimer()
}

Expand Down

0 comments on commit f7d08ee

Please sign in to comment.