swift - Can we hide a UIView partially in iOS -
i have partially hide uiview
when user scrolls on it. there uiscrollview
above uiview
. example in given image below want hide area covered under scrollable area in blue color. views background colors clear color.
i want hide part given in below image, marked rectangle in red color. part of text (one, two, three) visible.
each uiview
, including uiscrollview
, has core animation layer (a calayer
).
you access calayer
with
view.layer
in turn, calayer
has mask, access with
layer.mask
using mask comprehensive method of controlling visibility , opacity @ runtime.
Comments
Post a Comment