Feature: TabView tabItemTap event
See original GitHub issueRight now there is only a selectedIndexChanged
event for TabView. It would be nice with a Tab selection event, so that we could implement custom behavior when the currently active Tab is tapped again.
Examples:
- Double tap Tab to reset its history. This works now on iOS, but not on Android.
- Double tap Tab to scroll it to top (Twitter does this).
Suggestion:
As discussed with @sebawita , a simple onTabTapped
event, which would trigger with: currentTabIndex
and newTabIndex
, would do the job. Naming could be improved 😃
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:10 (2 by maintainers)
Top Results From Across the Web
SwiftUI TabView: how to detect click on a tab? - Stack Overflow
On the code below (by using onTapGesture ) when I tap on a new tab, myFunction is called, but the tabview is not...
Read more >TabView | Apple Developer Documentation
A view that switches between multiple child views using interactive user interface elements.
Read more >Working with the Tab View in SwiftUI - SerialCoder.dev
Learn how to create tab bar based applications in SwiftUI with the Tab view, how to deal with tab items, and other interesting...
Read more >TabView Events in Xamarin Tabbed View control - Syncfusion
Whenever the TabItem is tapped, the TabItemTapped event will occur. Using this event, you can modify the selected Tab Item properties. XAML; C#....
Read more >Xamarin Community Toolkit TabView - Microsoft Learn
The TabView control allows the user to display a set of tabs and their content. The TabView is fully customizable, other than the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@vchimev Any idea when this will be released?
is tabItemTap event implemented?