PCIOS-805: Fix transcript controls layout shift causing mis-taps#4655
Open
pocketcasts wants to merge 2 commits into
Open
PCIOS-805: Fix transcript controls layout shift causing mis-taps#4655pocketcasts wants to merge 2 commits into
pocketcasts wants to merge 2 commits into
Conversation
…loads, causing mis-taps (Share hit lands on Play)
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses a UIKit UIStackView layout shift in TranscriptViewController’s transcript controls bar that could cause mis-taps while the transcript is loading (buttons changing position as subviews are added/removed or hidden/unhidden).
Changes:
- Always add
shareButtonandplayButtonas arranged subviews up front, gating them via.isHiddeninstead of conditional insertion. - Keep control button layout stable during loading by switching from
isHiddentoggling toalpha+isUserInteractionEnabledtoggling. - Apply the same visibility approach to all relevant control buttons so they appear/disappear together during the loading transition.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves https://linear.app/a8c/issue/PCIOS-805/ios-transcript-controls-shift-position-as-the-transcript-loads-causing
Summary
Fixes a layout shift in the transcript controls bar where buttons would reposition as the transcript loaded, causing taps intended for Share to land on Play.
Changes
Verification
Confidence
HIGH — The root cause is clearly identified and the fix uses standard UIKit patterns.
This PR was created autonomously by linear-solver.
Triage complexity: simple | Linear issue