{"id":20306213,"url":"https://github.com/mariusmuntean/beforeandafter","last_synced_at":"2026-03-06T15:01:59.122Z","repository":{"id":144135071,"uuid":"197960098","full_name":"mariusmuntean/BeforeAndAfter","owner":"mariusmuntean","description":"Xamarin.Forms custom control showing a before-and-after view","archived":false,"fork":false,"pushed_at":"2022-11-06T21:27:50.000Z","size":5195,"stargazers_count":24,"open_issues_count":2,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-08T03:18:44.505Z","etag":null,"topics":["csharp","custom-control","xamarin-forms"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mariusmuntean.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-20T17:11:12.000Z","updated_at":"2025-06-04T15:01:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"06a58342-68a2-4151-a7c1-00ea2bd2f927","html_url":"https://github.com/mariusmuntean/BeforeAndAfter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mariusmuntean/BeforeAndAfter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariusmuntean%2FBeforeAndAfter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariusmuntean%2FBeforeAndAfter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariusmuntean%2FBeforeAndAfter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariusmuntean%2FBeforeAndAfter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mariusmuntean","download_url":"https://codeload.github.com/mariusmuntean/BeforeAndAfter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariusmuntean%2FBeforeAndAfter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30182686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","custom-control","xamarin-forms"],"created_at":"2024-11-14T17:12:29.326Z","updated_at":"2026-03-06T15:01:59.100Z","avatar_url":"https://github.com/mariusmuntean.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## BeforeAndAfter\r\n\r\nA custom control that displays a before-and-after view of something. You usually provide two images and overlap them.\r\n\r\nGet it from NuGet: [![NuGet](https://img.shields.io/badge/BeforeAndAfter-NuGet-brightgreen.svg?style=popout)](https://www.nuget.org/packages/BeforeAndAfter/)\r\n\r\nHere's a quick rundown of the control's features:\r\n\r\n* Specify the before and after views. These can be whatever Xamarin.Forms views you want, in the sample I'm using two normal Image controls.\r\n* OPTIONAL: provide your own thumb control. Have a look at the sample, I'm using a material design icon.\r\n\r\n## Known Limitations\r\n\r\nOn iOS you might have jittery movement.\r\nJust add thesetwo lines to your App.xaml\r\n\r\n             xmlns:ios=\"clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core\"\r\n             ios:Application.HandleControlUpdatesOnMainThread=\"true\"\r\n\r\nHere's a gif of the included sample app:\r\n\r\n![Sample](media/BeforeAndAfterSample.gif)\r\n\r\nInspired by: https://github.com/xsahil03x/before_after/tree/master/example\r\n\r\n\r\nAs usual you can do everything you want with my code. Have fun!\r\n\r\nHave a question?  Tweet at me: https://twitter.com/MunteanMarius\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariusmuntean%2Fbeforeandafter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmariusmuntean%2Fbeforeandafter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariusmuntean%2Fbeforeandafter/lists"}