title: Drawing an infinite grid in iOS
body: <p>I would like to know the best way to create an infinite grid on an iOS app I'm building. I use internal hardware on an iPhone to gather real-world data and build vectors. I'd like to visually represent the vector data on this grid that sort of acts like a graph. Each vector is represented as a line, and each new vector is attached to the previous vector on this grid. I'm building the app so that it can run for however long the user wants (from minutes - hours). The only problem I'm having trouble facing is how to start with this grid. I imagine the line on the app can get pretty long if the user runs the app for a couple of hours, so the grid needs to accommodate it and be "infinite" in that manner. </p>
  
  <p>By infinite, I mean that the user can swipe up, down, left, or right on the grid and the lines that make up the grid never end. There's just always going to be a grid on the screen regardless of where they swipe or for how long they swipe. The grid should also take on the properties of a graph as mentioned previously. I'm hoping to get something close to this: <a href="https://bl.ocks.org/mbostock/6123708" rel="nofollow noreferrer">https://bl.ocks.org/mbostock/6123708</a>, but this graph cuts off. </p>
  
  <p>I did some research, and most of the questions asking about grids come from the SpriteKit framework. But I don't know if running a game engine is the best solution. I would like to use core graphics, but if it's not possible to do this on that framework, I can work off of any other suggestions. Any help on where to start is appreciated!</p>