Creating graph layout to draw with dimensions

Hello,

I’m wanting to have a “virtual” grapth paper boxes and use them to set the canvas unit/scale. Would it be possible to have length attribute for the line drawn? I’m relatively new to iOS development, I know all the basic programming concepts but I’m not sure where to start for the problem above.

Thank you!

If you want to draw graphs on iOS you could use a library like:

Otherwise you could create a rectangle UIView subclass and resize it accordingly per your needs.

Hello,

Thank you for the replay! What I meant by graph is not charts but rather to have a graphing paper background with a defined scale for each square. The user can use the squares to draw lines just like a physical graphing paper.

Thank you!