You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey mate, in the call to QuickActionBar<>, you pass in a binding to selectedItem. When that value changes, the item was activated.
For example, in the SwiftUI Demo in the Demos/SwiftUI Demo folder, if you look at ContentView.swift, line 50 is the call for the quick action bar.
You can see at line 54 we pass in a binding to a selectedItem object (in this case selectedFilter).
When selectedFilter changes, the user has activated the item. If you need a callback you could add an onChange modifier to the quick action bar to detect the change, like so :-
I might be missing something obvious, but I can't find how to use didActivateItem, didCancel etc. when following the Swift UI implementation.
How do I tell DSFQuickActionBar what to do when an item is activated?
The text was updated successfully, but these errors were encountered: