brave / brave-ios

Brave iOS Browser
https://brave.com
Mozilla Public License 2.0
1.7k stars 440 forks source link

Fix #8535: Fix toggling night mode #8573

Closed ns-vasilev closed 11 months ago

ns-vasilev commented 11 months ago

Summary of Changes

This pull request fixes #8535

Submitter Checklist:

Test Plan:

Screenshots:

https://github.com/brave/brave-ios/assets/17319991/5358fd45-c63e-4392-9603-d28f0cdd3f75

Reviewer Checklist:

soner-yuksel commented 11 months ago

@nik3212 Thanks for the contribution and pull request.

Can you make changes according to this comment? There was a confusion there related with behaviour so we can merge this.

https://github.com/brave/brave-ios/issues/8535#issuecomment-1860953663

ns-vasilev commented 11 months ago

I returned the dismissal closure to NightModeMenuButton and checked if the view is displayed on the screen.

https://github.com/brave/brave-ios/assets/17319991/566a3e16-4c9d-4ee8-9ac3-88a0693d0c71

soner-yuksel commented 11 months ago

I returned the dismissal closure to NightModeMenuButton and checked if the view is displayed on the screen.

This seems good now, thanks for contribution.