fix(ios): measure toast leading slots at their rendered width - #10
Merged
Conversation
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.
Summary
Fix narrow iOS toasts that wrap their title and subtitle despite available space. Measurement now reserves the actual rendered leading-slot width (avatar, icon, or progress indicator), matching the live SwiftUI layout. Prepare patch release v0.8.1.
Changes
Testing
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Fixes iOS toast measurement so titles and subtitles no longer wrap inside an undersized toast when there's enough screen space. The width probe now reserves the actual rendered leading-slot width (avatar, icon, or progress indicator) instead of a fixed icon-slot constant, matching the live SwiftUI layout.
Written for commit d49e647. Summary will update on new commits.