Skip to content

Commit

Permalink
Fix extra timer scheduling (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahsmartin authored Sep 11, 2024
1 parent 62d6108 commit e609b3d
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 e609b3d

Please sign in to comment.