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

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -