Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MGohil/PINView.Maui
PINView is .NET Maui cross platform UI control to facilitate UI for mobile PIN or OTP entry.
https://github.com/MGohil/PINView.Maui
Last synced: 3 months ago
JSON representation
PINView is .NET Maui cross platform UI control to facilitate UI for mobile PIN or OTP entry.
- Host: GitHub
- URL: https://github.com/MGohil/PINView.Maui
- Owner: MGohil
- License: mit
- Created: 2022-10-09T16:53:37.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-07T10:18:14.000Z (4 months ago)
- Last Synced: 2024-07-08T09:03:48.113Z (4 months ago)
- Language: C#
- Size: 936 KB
- Stars: 11
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-dotnet-maui - PINView.Maui - square)](https://github.com/MGohil/PINView.Maui/stargazers)|[![GitHub last-commit](https://img.shields.io/github/last-commit/MGohil/PINView.Maui?style=flat-square)](https://github.com/MGohil/PINView.Maui/commits) (UI)
README
# PINView.Maui (.NET Maui UI control)
PINView is .NET Maui cross platform UI control to facilitate UI for mobile PIN (MPIN), OTP or Verification Code entry.
This control can be used for Login using PIN, Creting New PIN, Change PIN, Entering secure OTP screens in your mobile application.![](https://github.com/MGohil/PINView.Maui/blob/master/arts/showcase.gif)
If you are happy using this control and feeling generous, consider buying me a Coffee. :grinning:[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/mgohil213)
## Nuget Package
https://www.nuget.org/packages/PINView.Maui/### Platforms Supported
- [X] iOS
- [X] MacCatalyst
- [X] Android
- [X] Windows## Steps
1. Search for PINView.Maui [nuget](https://www.nuget.org/packages/PINView.Maui/) package and install it in your .NET Maui project.
2. In your Page, add reference to this package:
```xmlns:pinview="clr-namespace:PINView.Maui;assembly=PINView.Maui"```
3. Use the control like below:
``````
## Properties Definitions
| Property | Type | Default | Description |
| ----------| --- | --- | --- |
| AutoDismissKeyboard | Boolean | False | Decides whether to dismiss the keyboard automatically when all characters entered |
| BoxBackgroundColor | Color | Transparent | Defines the BackgroundColor of each PIN Box |
| BoxBorderColor | Color | Color Property Value | Defines the Border Color of each PIN Box |
| BoxBorderThickness | double | 1.0 | Sets the Thickness of Border of each PinBoxes |
| BoxFocusColor | Color | Black | Defines the Focus Indicator Border Color when PIN Box is Focused |
| BoxFocusAnimation | Enum | None | Animates the Box when it receives the Focus. Enum values [ None, ZoomInOut, ScaleUp ]|
| BoxShape | Enum | Circle | Defines the shape of PIN Box from Enum values [ Square, RoundCorner, Circle ] |
| BoxSize | Double | 50 | Defines the Width and Height of each PIN Box |
| BoxSpacing | Double | 5 | Defines the space among each PIN Box |
| Color | Color | Accent | Defines the Color of PIN Box (Border and Dot) |
| DotSize | double | 20.0 | Sets the Dot size of each Dots in PinBoxes |
| FontSize | double | 20.0 | Sets the Font size of each char Label in PinBoxes |
| FontAttributes | FontAttributes | None | Sets the FontAttributes of the Char label in each box. Applicable when IsPassword = False |
| FontFamily | string | System Font | Sets the FontFamily of the Char label in each box. Applicable when IsPassword = False |
| IsPassword | Boolean | False | Defines whether to show actual input character or hide / secure via Dot |
| PINInputType | Enum | Numeric | Defines the Input Type from Enum [ Numeric, AlphaNumeric ] |
| PINLength | Integer | 4 | Defines the Length (No. of Characters) of the PIN |
| PINValue | String | Empty | Bind this to string Property in your ViewModel, to get value of the Entered PIN |## Commands / Events Definitions
| Command / Event | Type | Description |
| ----------| --- | --- |
| PINEntryCompletedCommand | Command | A Bindable Command, which gets invoked on completion of the PIN entry (All characters are entered) You can execute your code through this command |
| PINEntryCompleted | Event | Invokes on completion of the PIN entry (when all characters are entered). |