Plugin.Maui.NativeSwipeMenu
1.0.0-preview2
See the version list below for details.
dotnet add package Plugin.Maui.NativeSwipeMenu --version 1.0.0-preview2
NuGet\Install-Package Plugin.Maui.NativeSwipeMenu -Version 1.0.0-preview2
<PackageReference Include="Plugin.Maui.NativeSwipeMenu" Version="1.0.0-preview2" />
<PackageVersion Include="Plugin.Maui.NativeSwipeMenu" Version="1.0.0-preview2" />
<PackageReference Include="Plugin.Maui.NativeSwipeMenu" />
paket add Plugin.Maui.NativeSwipeMenu --version 1.0.0-preview2
#r "nuget: Plugin.Maui.NativeSwipeMenu, 1.0.0-preview2"
#:package Plugin.Maui.NativeSwipeMenu@1.0.0-preview2
#addin nuget:?package=Plugin.Maui.NativeSwipeMenu&version=1.0.0-preview2&prerelease
#tool nuget:?package=Plugin.Maui.NativeSwipeMenu&version=1.0.0-preview2&prerelease
Plugin.Maui.NativeSwipeMenu
SwipeCollectionView is a .NET MAUI CollectionView with platform-native swipe actions.
- iOS and Mac Catalyst: The plugin uses
UIContextualActionon aUICollectionViewlist layout. You get the system swipe physics, full-swipe to perform, haptics, and system styling. This is the same control that Mail uses. - Android: The plugin attaches a native
ItemTouchHelperto the stockCollectionView. A swipe past the threshold performs the action. The action color and icon show behind the row during the drag.
Why
The MAUI SwipeView on iOS is a custom pan gesture that moves UIButton views. It does not use the UIKit swipe actions. UIKit gives native swipe actions only to UICollectionViewListCell in a list section. The MAUI CollectionView cells are plain UICollectionViewCell objects. Thus this plugin has its own iOS handler.
Setup
builder
.UseMauiApp<App>()
.UseNativeSwipeMenu();
Usage
xmlns:swipe="clr-namespace:Plugin.Maui.NativeSwipeMenu;assembly=Plugin.Maui.NativeSwipeMenu"
<swipe:SwipeCollectionView ItemsSource="{Binding Messages}">
<swipe:SwipeCollectionView.LeadingActions>
<swipe:SwipeAction Text="Unread" SystemImage="envelope.badge.fill"
BackgroundColor="#0A84FF" Command="{Binding ToggleUnreadCommand}" />
</swipe:SwipeCollectionView.LeadingActions>
<swipe:SwipeCollectionView.TrailingActions>
<swipe:SwipeAction Text="Delete" Style="Destructive" SystemImage="trash.fill"
IconImageSource="{FontImageSource Glyph=..., FontFamily=...}"
Command="{Binding DeleteCommand}" />
</swipe:SwipeCollectionView.TrailingActions>
<swipe:SwipeCollectionView.ItemTemplate>
<DataTemplate>...</DataTemplate>
</swipe:SwipeCollectionView.ItemTemplate>
</swipe:SwipeCollectionView>
The actions are on the list, not on each item. Thus each action gets the page BindingContext. The command receives the swiped item as its parameter. If you set CommandParameter, the command receives that value. If CanExecute returns false for an item, the action does not show for that item.
SwipeAction
| Property | Description |
|---|---|
Text |
The action label. |
SystemImage |
The SF Symbol name. iOS only. On iOS, this value has priority over IconImageSource. |
IconImageSource |
Any MAUI ImageSource. The plugin shows it in white. Use it for the Android icon. |
Style |
Normal or Destructive. Destructive is red by default. |
BackgroundColor |
Overrides the default color. |
Command, CommandParameter |
Runs when the user selects the action. |
IsVisible |
Hides the action. |
Invoked event |
Occurs with the item and the action. |
SwipeCollectionView
| Property | Description |
|---|---|
LeadingActions, TrailingActions |
The swipe actions. Put Delete in TrailingActions. |
PerformsFirstActionOnFullSwipe |
iOS. A long swipe performs the first action. The default is true. |
ShowsSeparators |
iOS. Shows the native list separators. Set it to false if your template draws its own separator. |
SwipeActionInvoked event |
Occurs for each action. |
Platform limits
iOS uses a dedicated handler. This handler supports these features:
ItemsSource, with incremental animated updates forINotifyCollectionChangedItemTemplateandDataTemplateSelectorEmptyViewandEmptyViewTemplateSelectionMode,SelectedItem,SelectedItems, andSelectionChangedCommand
This handler does not support grouping, Header, Footer, grid ItemsLayout, ScrollTo, or RemainingItemsThreshold.
Android uses the stock CollectionView, so all of its features work. A swipe performs the first available action for that side. Thus only one action shows on each side. This is the Material pattern, for example in Gmail. Rows need an ItemTemplate.
If a destructive command does not remove the item in 750 ms, the row moves back into position. A row moves back immediately for a normal action.
Sample
The sample app is in samples/Plugin.Maui.NativeSwipeMenu.Sample. On a simulator or emulator, the sample removes a row, inserts a row, and flags a row on a timer. This lets you examine the animated updates without touch input.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-android36.0 is compatible. net10.0-browser was computed. net10.0-ios was computed. net10.0-ios26.0 is compatible. net10.0-maccatalyst was computed. net10.0-maccatalyst26.0 is compatible. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Maui.Controls (>= 10.0.0)
-
net10.0-android36.0
- Microsoft.Maui.Controls (>= 10.0.0)
-
net10.0-ios26.0
- Microsoft.Maui.Controls (>= 10.0.0)
-
net10.0-maccatalyst26.0
- Microsoft.Maui.Controls (>= 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.1 | 142 | 11/21/2026 |
| 1.0.0 | 118 | 11/21/2026 |
| 1.0.0-preview2 | 96 | 11/21/2026 |
| 1.0.0-preview1 | 93 | 11/21/2026 |