TOCropViewController icon indicating copy to clipboard operation
TOCropViewController copied to clipboard

Count of lines (horizontal, vertical) in grid

Open ArtemGukov opened this issue 4 years ago • 1 comments

Tim, hello. Thanks for the great library. I need to change the number of grid lines after some calculations. How can I configure this manually, have any ideas?

ArtemGukov avatar Sep 17 '20 01:09 ArtemGukov

Hi @ArtemGukov! Thanks! I'm glad you found the library useful! :)

All the code controlling the gridlines is here: https://github.com/TimOliver/TOCropViewController/blob/master/Objective-C/TOCropViewController/Views/TOCropOverlayView.m

As you can see, it's hardcoded to be a 3x3 grid. If you want to change the number of lines, you'd have to change the code here yourself. I sadly don't have the time to take on feature requests for this library, but if it's something you'd be interested in filing a PR over, that'd be great!

Thanks!

TimOliver avatar Oct 11 '20 02:10 TimOliver