What is Nostr?
frederik_diamond / FREDERIK DIAMOND
npub1nj0…2gqz
2025-04-10 22:11:06

frederik_diamond on Nostr: I had an issue with the buttons in the horizontal tab bar at the bottom of the ...

I had an issue with the buttons in the horizontal tab bar at the bottom of the sidebar.

Basically, when I collapsed the sidebar and then reopened it again, the clickable area of the buttons would be misaligned. So if the user clicked the button, nothing happened, but if the user moved their cursor to the left of the button (not inside the button, but outside to the left side), it would register a click.


Turns out that it happened because I set the width of the sidebar to 0px. I changed the code so that now I’m moving the sidebar outside the viewport on the x-axis. This solved the problem.

This also makes the animation look way smoother, as the content inside the sidebar is not getting squashed because the sidebar was decreasing its width to 0px. #dev #swift

I improved the tab bar to switch views in the sidebar.
Additionally, the search functionality now works quite well. I implemented it so that the letters matching the search query will be highlighted.

I need to implement a new separate window for settings.

I think it’d be a really cool UX if the user could simply swipe between the different tab views in the sidebar.

#dev #swift

Author Public Key
npub1nj0crmtetu84a7j43yegy358mp8u0e4ye7ndkhtd8dg0edll4mpqn52gqz