Skip to content

Commit

Permalink
fix progress view crash by removing call to flush (#3272)
Browse files Browse the repository at this point in the history
Task/Issue URL:
https://app.asana.com/0/392891325557410/1207778385841673/f
Tech Design URL:
CC:

**Description**:
Removes the call to CATransaction.flush which Apple recommends you don't
do anyway. It was there for legacy reasons but after testing it seems to
be fine.

**Steps to test this PR**:
1. Browse a few pages and see the progress bar.
  • Loading branch information
brindy authored Aug 23, 2024
1 parent 3980704 commit c24b07e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion DuckDuckGo/ProgressView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ class ProgressView: UIView, CAAnimationDelegate {
progressMask.bounds = calculateProgressMaskRect()
progressMask.opacity = 1
CATransaction.commit()
CATransaction.flush()

startGradientAnimation()
}
Expand Down

0 comments on commit c24b07e

Please sign in to comment.