Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 1.21 KB

README.MD

File metadata and controls

32 lines (18 loc) · 1.21 KB

Aperture

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

Get it from NuGet: NuGet

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

Known Limitations

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:

Sample

As usual you can do everything you want with my code. Have fun!

Have a question? Tweet at me: https://twitter.com/MunteanMarius