Puzzle cropper framework for iOS
let cropper = PuzzleCropper()
cropper.numberOfLines = 5
cropper.puzzleLineWidth = 1
cropper.cropImage(image, thread: DispatchQueue.global()) { (puzzles) in
// Here your puzzles
}
Using cocoapod
target 'MyApp' do
pod 'PuzzleCropper'
end