ASMultiSelectActionSheet
ASMultiSelectionActionSheet is a control built for Xamarin.iOS. The style roughly resembles an UIAlertController with cancel action, while the functionality includes that of an Android MultiChoice AlertDialog.
The control presents the user with one or more options. Each option can be toggled on or off as the user requires. If all options are toggled off, the action button is also disabled. Optionally, the action button can be bound to any Action or ICommand object that you pass into the action sheet constructor. Otherwise, you can respond to the action sheet manually from the delegate.
The dialog title, message and "OK" button titles are all customizable from the API. The control includes a very basic check-mark icon which can be changed to suit your project, but changing the icon programmatically is not currently exposed in the API.
This control requires Xamarin.iOS and iOS 7.0+.
- Copy the ASMultiSelectionActionSheetControl folder to your project.
- Note that Nuget installation is forthcoming.
After copying the folder:
- Include
using ASMultiSelectionActionSheet
wherever you intend to launch the control. - Implement
IASMultiSelectActionSheet
and passthis
as the caller delegate.
This control is new and it isn't perfect for all situations yet, but it has the potential to be robust and reusable. Please consider contributing.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
1-12-18: 1.0.0 Initial commit
Created by Will Smith ©2018.
The concept for this control is loosely based on JGActionSheet by Jonas Gessner, however that control did not provide multi-selection functionality. This repo is not a fork since the original project is for iOS native and written in Objective-C.
MIT License. ©2018 Appsmiths, LLC