ScratchImage is scratchable UIImageView
let scratchImage = ScratchImageView(image: UIImage(named: "image"))
let scratchImage = ScratchImageView(imageColor: .brown)
scratchImage.reset()
scratchImage.scratchedPercent
// line type
scratchImage.lineType = .square // .butt, .round
// line width
scratchImage.lineWidth = 10.0
platform :ios, '8.0'
use_frameworks!
target '<Your Target Name>' do
pod 'ScratchImage'
end
github "cashwalk/ScratchImage"
These works are available under the MIT license. See the LICENSE file for more info.