I want to make something like this:
What I do: two UIImagesView
, one with UIViewContentModeLeft
and another with UIViewContentModeRight
. I have a slider where I can change image frames. The solution seems to be ok, but I am not sure if this is the "right" one. Other suggestions are welcome.
Thanks!
use single
Imageview
for your concept it is my suggestion If you feel free use this else use your concept else go some thirdparty, where you need for modify the transparent, add the oneTransparent UIView
above theImageView
. set the frame as ofTransparent UIView
forShow
as(0, 0, ImageView.frame.size.width/2,ImageView.frame.size.height)
, forHide
(ImageView.frame.origin.X - 40, 0, ImageView.frame.size.width/2,ImageView.frame.size.height)
for example
To Show
To hide