Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 594 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 594 Bytes

ImageOverlay

UIImage extension to apply Sketch-style overlays to images. See the CGBlendMode documentation for blending options (they match up with Sketch blending mode names).

Usage

Add UIImage+Overlay.swift to your project, then call applyOverlayWithColor():

let image = UIImage(named: "MyImage")
let imageWithOverlay = image.applyOverlayWithColor(UIColor.blueColor(), blendMode: .Color, alpha: 0.5)
self.myImageview.image = imageWithOverlay