PGSSoft / PuzzleMaker

Swift framework responsible for generating puzzles from the image
MIT License
128 stars 24 forks source link

Align images after moving #5

Closed mylogon341 closed 5 years ago

mylogon341 commented 5 years ago

I want to be able to drag and drop these image views, but with them being different sizes I can't see a way to know when they're aligned. With different origin X & Y, widths and heights i'm not sure how to do it.

Can you suggest a way? Example image here Thanks

mylogon341 commented 5 years ago

I suppose they always intersect, so I could check for that after adding variables for 'neighbouring pieces' or something similar after generating the puzzle.