A Quick 'n' Easy Graph Paper View for iOS
This is a pretty simple custom UIView for showing graph paper. It looks like this:
- Written in Swift!
- It's an IBDesignable class with Inspectable items. You can change the distance between major and minor lines, and change the colour of those lines, all within Interface Builder.
- There is no third feature!
You can download this project and see how it works. To integrate into your own project:
- Import "GraphPaperView.swift" into your project.
- In Interface Builder, drop a UIView onto your Storyboard or XIB.
- Change the Custom Class of the UIView to
GraphPaperView
. - In the Properties palette, set up your distances and colours.
- There is no step 5!
No credit really; I just wrote this for a project I'm working on. If you like it, feel free to say thanks on Twitter. I'm @aaronvegh.