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

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -