element-hq / element-x-ios

Next generation Matrix client for iOS built with SwiftUI on top of matrix-rust-sdk.
https://element.io/labs/element-x
GNU Affero General Public License v3.0
393 stars 87 forks source link

Corrupt layout after rotating screen and then turning rotation lock off #2515

Open ara4n opened 6 months ago

ara4n commented 6 months ago

Steps to reproduce

Not sure what the repro steps are, but i've had this a few times:

  1. Turn off the OS rotation lock
  2. Go landscape and back again fairly rapidly
  3. Turn on rotation lock again
  4. Lock the phone
  5. Unlock the phone or fg the app somehow
  6. See this:

image

Have to force-quit the app to make it usable again.

Outcome

What did you expect?

App layout which is not completely corrupt

Your phone model

No response

Operating system version

17.3.1

Application version

532

Homeserver

No response

Will you send logs?

No

ara4n commented 5 months ago

just repro'd this again in build 568. again, this happened after having used the app in landscape mode by accident, rotated to portrait, locked, viewed a room, re-foregrounded the app into a room view, and then hit back to the room list to see this:

image

My assumption is that the view stack gets confused by showing the room list with both columns, then later when popping the stack in portrait-lock it doesn't know what to render.

ara4n commented 2 months ago

I can't repro this on build 628. perhaps Apple fixed something.

ara4n commented 1 month ago

no such lock; got it on 667 on 17.5.1 on iphone 12 pro max

image