Before and after image slider usege drag UIVew on UIViewController apply constraints apply BeforeAfterView as class set image1 and image2 in attributes inspector Android verison