ios - Setting using Content of CALayer's to Image.imageWithRenderingMode Does not work -
i trying set "tinted" version uiimage calayer content property, resulted in original image instead.
var imagelayer = calayer(); imagelayer.contentsgravity = kcagravityresizeaspect; imagelayer.contents = image!.imagewithrenderingmode(uiimagerenderingmode.alwaystemplate).cgimage;
any idea how use alwaystemplate renderingmode version of uiimage calayer?
Comments
Post a Comment