Skip to content

Instantly share code, notes, and snippets.

View gwming0601's full-sized avatar
🏠
Working from home

θ‘›ζ–‡ζ˜Ž gwming0601

🏠
Working from home
  • HPR IT Tech Co. Ltd
  • Dandong, Liaoning, China
View GitHub Profile
@gwming0601
gwming0601 / UIImage+Tinting.swift
Created January 29, 2018 10:57 — forked from iamjason/UIImage+Tinting.swift
Swift UIImage extension for tinting images
/**
Usage:
let originalImage = UIImage(named: "cat")
let tintedImage = originalImage.tintWithColor(UIColor(red: 0.9, green: 0.7, blue: 0.4, alpha: 1.0))
*/
extension UIImage {
func tintWithColor(color:UIColor)->UIImage {