Skip to content

Use container-relative constraints instead of UIScreen.main.bounds in ErrorStateView#25685

Open
crazytonyli wants to merge 1 commit into
trunkfrom
task/uiscreen-errorstateview-bounds
Open

Use container-relative constraints instead of UIScreen.main.bounds in ErrorStateView#25685
crazytonyli wants to merge 1 commit into
trunkfrom
task/uiscreen-errorstateview-bounds

Conversation

@crazytonyli

Copy link
Copy Markdown
Contributor
Before After
iPad errorstateview-ipad-before errorstateview-ipad-after-unified
iPhone errorstateview-iphone-before errorstateview-iphone-after-unified

… ErrorStateView

The error state view sized its content width and positioned its dismissal
control as fractions of the main screen, computed during init before the view
had a window. Those are now Auto Layout constraints relative to the view
itself (which fills the screen), so they resolve at layout time and adapt to
the actual container without reading the deprecated shared screen.
@crazytonyli crazytonyli added this to the 27.1 milestone Jun 23, 2026
@crazytonyli crazytonyli requested a review from jkmassel June 23, 2026 23:16
@wpmobilebot

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number32747
VersionPR #25685
Bundle IDorg.wordpress.alpha
Commitf3359fd
Installation URL5sr45k2m851no
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number32747
VersionPR #25685
Bundle IDcom.jetpack.alpha
Commitf3359fd
Installation URL256j8t42abdeg
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@jkmassel jkmassel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude flagged some potential RTL issues here.

I wonder though, if we should just remove ErrorStateView and replace it with ContentUnavailableView? It seems like a good opportunity to delete a bunch of code. WDYT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants