mlemgroup / mlem

Mlem for Lemmy
https://lemmy.ml/c/mlemapp
GNU General Public License v3.0
180 stars 31 forks source link

Rotating Phone in All Loses Navigation Bar Translucency #365

Closed d42ohpaz closed 1 year ago

d42ohpaz commented 1 year ago

Describe the bug After rotating the phone to landscape, and rotating it back to portrait, the translucency of the navigation bar is gone.

Expected Behavior The navigation bar to retain its thin material translucency.

Actual Behavior The translucency is completely gone.

To Reproduce Rotate the phone to landscape and rotate it back to portrait.

Mlem Information: Version 1.0.0 (213)

Additional Context N/A

https://github.com/mlemgroup/mlem/assets/2528463/38f355eb-f6a8-4330-9671-27772565c837

boscojwho commented 1 year ago

Couldn't reproduce on latest TestFlight build, possibly fixed by the new custom tab bar?

d42ohpaz commented 1 year ago

I’m using 1.0.1 (432) and the issue still exists. Are you on a dev version?

On Tue, Aug 8, 2023 at 9:53 PM Bosco Ho @.***> wrote:

Couldn't reproduce on latest TestFlight build, possibly fixed by the new custom tab bar?

— Reply to this email directly, view it on GitHub https://github.com/mlemgroup/mlem/issues/365#issuecomment-1670540240, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATJJT5ATPTDUUS23VOTF4LXULUTDANCNFSM6AAAAAA2WKVA7M . You are receiving this because you authored the thread.Message ID: @.***>

-- Do not go gentle into that good night, Rage, rage against the dying of the light.

  • Dylan Thomas
boscojwho commented 1 year ago

I’m using 1.0.1 (432) and the issue still exists. Are you on a dev version? On Tue, Aug 8, 2023 at 9:53 PM Bosco Ho @.> wrote: Couldn't reproduce on latest TestFlight build, possibly fixed by the new custom tab bar? — Reply to this email directly, view it on GitHub <#365 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATJJT5ATPTDUUS23VOTF4LXULUTDANCNFSM6AAAAAA2WKVA7M . You are receiving this because you authored the thread.Message ID: @.> -- Do not go gentle into that good night, Rage, rage against the dying of the light. - Dylan Thomas

Tested it on 1.0.1 (432) in light and dark modes, and still couldn't get a repro, odd.

d42ohpaz commented 1 year ago

Tested it on 1.0.1 (432) in light and dark modes, and still couldn't get a repro, odd.

Does it happen if you quit the app, do a fresh launch and immediate rotate the app?

Yes.

What version of iOS are you on?

iOS 16.6

What iPhone are you using?

12 Pro Max


So for further clarity:

HTH.

PS. still occurs in latest RC1 version 1.0.1 (475).

boscojwho commented 1 year ago

PS. still occurs in latest RC1 version 1.0.1 (475).

Thank you, very useful info =)

Is this happening every time you rotate?

boscojwho commented 1 year ago

Finally reproduced this bug:

Notes:

boscojwho commented 1 year ago

On rotate back to portrait:

FeedView: @self, @identity, _shouldBlurNsfw, _shouldShowPostCreator, _postSize, _showReadPosts, _appState, _filtersTracker, _favoriteCommunitiesTracker, _editorTracker, _feedType, _postTracker, _communityDetails, _postSortType, _isLoading, _shouldLoad changed.
Post tracker is empty
FeedView: _isLoading changed.

Identity change shouldn't be happening.

boscojwho commented 1 year ago

Not able to reproduce bug running iPhone 13 mini (simulator or device) and iPhone 12 Pro:

Note to self:

Was able to reproduce this issue on commit 32f551cf37c878fffb35e1d2ad3bdc8009c562c8, last commit on /dev branch that used the system TabBar:

We want views to re-render on rotation events, but its identity shouldn't change.

😴

boscojwho commented 1 year ago

Update:

Unfortunately, nav bar translucency bug isn't caused by feed reloading on rotate.

boscojwho commented 1 year ago

Isolating this issue to the NavigationSplitView, removing it "fixes" issue:

Next step:

boscojwho commented 1 year ago

Scratch that, this line might be the issue [FeedView: line 63]:

Screenshot 2023-08-15 at 8 07 09 PM

getting very close to fixing this... T_T

Sjmarf commented 1 year ago

Fixed in #513