Plugin.Maui.NativeSwipeMenu 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Plugin.Maui.NativeSwipeMenu --version 1.0.0
                    
NuGet\Install-Package Plugin.Maui.NativeSwipeMenu -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Plugin.Maui.NativeSwipeMenu" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Plugin.Maui.NativeSwipeMenu" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Plugin.Maui.NativeSwipeMenu" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Plugin.Maui.NativeSwipeMenu --version 1.0.0
                    
#r "nuget: Plugin.Maui.NativeSwipeMenu, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Plugin.Maui.NativeSwipeMenu@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Plugin.Maui.NativeSwipeMenu&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Plugin.Maui.NativeSwipeMenu&version=1.0.0
                    
Install as a Cake Tool

Plugin.Maui.NativeSwipeMenu

NuGet

SwipeCollectionView is a .NET MAUI CollectionView with platform-native swipe actions.

  • iOS and Mac Catalyst: The plugin uses UIContextualAction on a UICollectionView list 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 ItemTouchHelper to the stock CollectionView. 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 for INotifyCollectionChanged
  • ItemTemplate and DataTemplateSelector
  • EmptyView and EmptyViewTemplate
  • SelectionMode, SelectedItem, SelectedItems, and SelectionChangedCommand

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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