Open Source: Auto-Continuation for Bulleted and Numbered Lists in UITextView

Recently for my app StorySkeleton I wanted to implement auto-continuation for lists. For example, if a user is typing out a list of bullet points, it's pretty annoying to get to the bullet point character on the keyboard. Or if it's a numbered list, it's time-consuming to type out a new number each time.

It turns out my solution to the problem could be pretty easily encapsulated, so I decided to wrap it up and push it to GitHub for anyone else who might find it useful.

Basically what it does is catch the event where the user hits the 'Return' key to begin a new line, and inserts the appropriate list item at the beginning of the new line if the conditions are met.

You can find it on GitHub here: Auto-List-Continuation-For-UITextView



blog powered by Pelican