# PhotoBrowser.Forms **Repository Path**: alan69alan69/PhotoBrowser.Forms ## Basic Information - **Project Name**: PhotoBrowser.Forms - **Description**: Full screen image viewer(Xamarin.Forms) that includes "pinch to zoom" and "swipe to dismiss" gestures. - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-12-28 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PhotoBrowser.Forms Full screen image viewer(Xamarin.Forms) that includes "pinch to zoom" and "swipe to dismiss" gestures. [![NuGet](https://img.shields.io/nuget/v/PhotoBrowser.Forms.svg)](https://www.nuget.org/packages/PhotoBrowser.Forms/) Supports Android and iOS. * Android library from : https://github.com/stfalcon-studio/FrescoImageViewer * iOS library from : https://github.com/mwaterfall/MWPhotoBrowser ## Features * Pinch to zoom. * Swipe to dismiss. * Custom Title. * Custom Action Button. ## Screen-Shots PhotoBrowser for Android PhotoBrowser for iOS ## Setup * Install the [nuget package](https://www.nuget.org/packages/PhotoBrowser.Forms) in portable and all platform specific projects. ### Android In MainActivity.cs file ```cs Stormlion.PhotoBrowser.Droid.Platform.Init(this); ``` ### iOS In AppDelegate.cs file ```cs Stormlion.PhotoBrowser.iOS.Platform.Init(); ``` ## Usage ```cs new PhotoBrowser { Photos = new List { 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(); ``` ### More Properties * ActionButtonPressed * StartIndex ## Contributions Contributions are welcome!