axiel7 / AniHyou-iOS

Another unofficial iOS AniList client
https://axiel7.github.io/anihyou
GNU General Public License v3.0
56 stars 5 forks source link

Return to initial screen when active tab button is pressed #28

Open joel-mrtn opened 6 months ago

joel-mrtn commented 6 months ago

Request (required) Return to initial screen when active tab button is pressed.

Additional context For example let's say that I'm viewing my completed anime list and I want to navigate back to the initial list view to select my planning anime list. It would be convenient to navigate to the initial view by pressing on the current tab button, in this case the anime tab. If the current content is already the initial tab view, many apps scroll to the top when pressing on the current tab button.

Examples

axiel7 commented 6 months ago

I plan to implement this but I haven't figured out yet a nice solution to do it in SwiftUI

fraluc06 commented 1 week ago

I don’t know if it could be a solution but I had an idea: can you set an option to change the default tab when a tab is opened, like in anime the watching, completed, all etc… and then redirect to it when the “x” tab is clicked? I’m not a good developer, I’m studying to improve my skills so idk if my idea can be helpful but I hope so @axiel7