SaturdayMP.XPlugins.iOS.BEMCheckBox 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package SaturdayMP.XPlugins.iOS.BEMCheckBox --version 2.0.0                
NuGet\Install-Package SaturdayMP.XPlugins.iOS.BEMCheckBox -Version 2.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="SaturdayMP.XPlugins.iOS.BEMCheckBox" Version="2.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SaturdayMP.XPlugins.iOS.BEMCheckBox --version 2.0.0                
#r "nuget: SaturdayMP.XPlugins.iOS.BEMCheckBox, 2.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.
// Install SaturdayMP.XPlugins.iOS.BEMCheckBox as a Cake Addin
#addin nuget:?package=SaturdayMP.XPlugins.iOS.BEMCheckBox&version=2.0.0

// Install SaturdayMP.XPlugins.iOS.BEMCheckBox as a Cake Tool
#tool nuget:?package=SaturdayMP.XPlugins.iOS.BEMCheckBox&version=2.0.0                

GitHub release (with filter) Nuget CI Release Notes

XPlugins.iOS.BEMCheckBox

This plugin lets you use the BEMCheckBox in your Xamarin iOS applications. Below outlines how to get started with BEMCheckBox in Xamarin and some common uses. For a list of all the features of the please see the BEMCheckBox GitHub page.

Installing

You can find the latest stable version of the BEMCheckBox XPlugin is avaliable via NuGet. You can find alpha builds from MyGet. If you have any trouble installing please let me know by opening an issue.

Quickstart

To create a BEMCheckBox call the constructor with a frame as shown below.

var checkbox = new SaturdayMP.XPlugins.iOS.BEMCheckBox(new CoreGraphics.CGRect(140, 40, 25, 25));

You can modify things such as making the checkbox square:

checkbox.BoxType = BEMBoxType.Square;

You can also change the animation type:

checkbox.OnAnimationType = BEMAnimationType.Fill;
checkbox.OffAnimationType = BEMAnimationType.Fill;

Yes you can set the on and off animation types to be different. You can set the color:

checkbox.OnFillColor = UIColor.Red;

To change if the checkbox is checked or not:

// Check to the checkbox.
checkbox.On = true;

// Uncheck the checkbox.
checkbox.On = false;

Finally to handle checkbox clicks setup an event:

private void CheckBoxClickedEvent(object sender, EventArgs eventArgs)
{
  var checkbox = sender as BEMCheckBox;
  if (checkbox == null)
    return;
    
  // Do what you need to do with the checkbox.
}

Then subscribe to it:

checkbox.AnimationDidStopFor += CheckBoxClickedEvent;

For a full list of settings such as animation type, colours, etc see the BEMCheckBox page.

You can also play with the BEMCheckBox settings in the Example Client. To run the Example Client open the source in Visual Studio 2017 and set the Example Client as the startup project. If the Example Client does not run please let me know.

Version Mapping

The version of this BEMCheckBox plugin will match the BEMCheckBox major and minor version number but the patch number might differ. When possible the patch number will match but if there is an issue with the wrapper that needs to be fixed then the patch number might be higher then the BEMCheckBox version.

BEMCheckBox XPlugin Frameworks/Versions
1.4.1 1.4.1 Xamarin.iOS/xamarinios10
1.4.1 1.4.2 Xamarin.iOS/xamarinios10
1.4.1 1.4.3 Xamarin.iOS/xamarinios10
2.0.0 2.0.0 Xamarin.iOS/xamarinios10

Acknowledgements

Thanks to Boris Emorine for creating the BEMCheckBox.

Further Reading

Xamarin

Walkthrough: Binding an iOS Objective-C Library

Noise from the Basement

Today I Learned How to Create a Xamarin iOS Binding for Objective-C Libraries:

Today I Learned How to Automate Objective-c Builds in TeamCity

Product Compatible and additional computed target framework versions.
Xamarin.iOS xamarinios10 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SaturdayMP.XPlugins.iOS.BEMCheckBox:

Package Downloads
Hofmanix.HxForms

Addional views and plugins for Xamarin Forms - currently in development

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.1 901 10/14/2023
3.0.0 155 10/14/2023
2.0.0 1,752 8/17/2023
1.4.3 161,490 12/22/2017
1.4.2 1,009 12/4/2017
1.4.1 5,294 8/2/2017