Skip to content

Xamarin embeddable image viewer with 360 degree support

License

Notifications You must be signed in to change notification settings

nicholasfortier/swank

 
 

Repository files navigation

swank

Swank Plugin for Xamarin.Forms

Build status NuGet

Xamarin embeddable image viewer with 360 degree support

iOS

In your iOS project call:

SwankImplementation.Init();

XAML

First add the xmlns namespace:

xmlns:swankPlugin="clr-namespace:Swank.FormsPlugin;assembly=Swank.FormsPlugin"

Then add the xaml:

<!-- ViewerImages = IEnumerable<ViewerImage> -->
<swankPlugin:Gallery ItemsSource="{Binding ViewerImages}" />

Options

PositionSelected: You can attach an event handler that will be fired with the current carousel position.

<swankPlugin:Gallery PositionSelected="Carousel_OnPositionSelected" />
private void Carousel_OnPositionSelected(object sender, PositionSelectedEventArgs e)
{
    Console.WriteLine($"Index is {e.NewValue}")
}

About

Xamarin embeddable image viewer with 360 degree support

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 76.6%
  • PowerShell 16.4%
  • Shell 7.0%