xai3 / Minamo

Simple coach mark library written in Swift
MIT License
247 stars 18 forks source link

Convenience init for RippleView #4

Open jstnheo opened 8 years ago

jstnheo commented 8 years ago

Added a convenience initializer to RippleView for easier initialization and default value for tint color

let view = RippleView(image: UIImage(named: "q"), tintColor: UIColor(red: 0.3, green: 0.7, blue: 1, alpha: 1))

let view2 = RippleView(image: UIImage(named: "q"))

let view3 = RippleView()
view3.coreImage = UIImage(named: "q")
view3.tintColor = UIColor(red: 0.3, green: 0.7, blue: 1, alpha: 1)

view, view2, view3 all have the same result