Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Repository files navigation

ScratchImage

ScratchImage is scratchable UIImageView

Screenshots

Usage

Initialization

let scratchImage = ScratchImageView(image: UIImage(named: "image"))
let scratchImage = ScratchImageView(imageColor: .brown)

Reset

scratchImage.reset()

Scratched precent

scratchImage.scratchedPercent

Line

// line type
scratchImage.lineType = .square // .butt, .round

// line width
scratchImage.lineWidth = 10.0

Installation

CocoaPods (iOS 8+)

platform :ios, '8.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'ScratchImage'
end

Carthage (iOS 8+)

github "cashwalk/ScratchImage"

LICENSE

These works are available under the MIT license. See the LICENSE file for more info.

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.