A Xamarin.Forms custom control that shows either the background or a child view using an aperture-like mask.
It is implemented exclusively in Xmarin.Forms and hence should run on all platforms where Xamarin.Forms is supported. Also, it is tiny. Would probably look great on watches :D
Here's a quick rundown of the control's features:
- Specify the aperture opening, where 0.0 corresponds to closed and 1.0 to fully open.
- Choose an aperture color.
- OPTIONAL: provide a child view to be shown, instead of the control's background
On iOS you might have jittery movement. Just add thesetwo lines to your App.xaml
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
ios:Application.HandleControlUpdatesOnMainThread="true"
Here's a gif of the included sample app:
As usual you can do everything you want with my code. Have fun!
Have a question? Tweet at me: https://twitter.com/MunteanMarius