Full screen image viewer(Xamarin.Forms) that includes "pinch to zoom" and "swipe to dismiss" gestures.
Supports Android and iOS.
- Android library from : https://github.com/stfalcon-studio/FrescoImageViewer
- iOS library from : https://github.com/mwaterfall/MWPhotoBrowser
- Pinch to zoom.
- Swipe to dismiss.
- Custom Title.
- Custom Action Button.
- Install the nuget package in portable and all platform specific projects.
In MainActivity.cs file
Stormlion.PhotoBrowser.Droid.Platform.Init(this);
In AppDelegate.cs file
Stormlion.PhotoBrowser.iOS.Platform.Init();
new PhotoBrowser
{
Photos = new List<Photo>
{
new Photo
{
URL = "https://raw.githubusercontent.com/stfalcon-studio/FrescoImageViewer/v.0.5.0/images/posters/Vincent.jpg",
Title = "Vincent"
},
new Photo
{
URL = "https://raw.githubusercontent.com/stfalcon-studio/FrescoImageViewer/v.0.5.0/images/posters/Jules.jpg",
Title = "Jules"
},
new Photo
{
URL = "https://raw.githubusercontent.com/stfalcon-studio/FrescoImageViewer/v.0.5.0/images/posters/Korben.jpg",
Title = "Korben"
}
},
ActionButtonPressed = (index) =>
{
Debug.WriteLine($"Clicked {index}");
}
}.Show();
- ActionButtonPressed
- StartIndex
Contributions are welcome!