Without wishing to be flippant, my current advice is “Don’t use iOS 11 for real work yet.” I say this because there is a very serious bug that Apple has introduced to its text system in iOS 11 - it’s so enormous that I can’t believe it even made it through to a beta. The bug is this: after every letter you type, the iOS text system in iOS 11 tries to reset the current formatting for typing back to that of the first character in the text. This doesn’t just affect screenwriting - it affects everything. For instance, try this:
- In a new document with screenwriting turned off, type some text. Change the text at the start of the document so that it’s large, bold and red.
- Type another paragraph and remove the bold, red formatting and make it normal size. Now start typing at the end of that paragraph.
What happens is that as soon as you start typing at the end of the paragraph, the text reverts to being big, red and bold - it keeps grabbing the formatting from the start of the text.
Likewise, if you switch to using italics and try typing, only the first letter will be italicised; after that, typing reverts to the formatting at the start of the text.
When you use scriptwriting mode, what is happening is that with each letter you type, the formatting is getting reset back to the scene heading element from the start of the text - this is caused by Apple’s nasty bug. This bug is rendering the entire app very awkward to use on the current beta.
I have reported this bug to Apple as ID#34239348. Please make sure you report it to them, too, in the hope that more reports will make it more likely they fix it. You can tell them to reference this bug ID for a developer report.
I have spent the past two days finding a workaround for this bug and now have a workaround that works for the most part. However, the workaround is hideous, as it involves a lot of kludges and reworking text as it’s typed. For instance, it has to:
- Cache the expected formatting before you type something and see if the text after typing matches the expected formatting, and if not, fix it up.
- Not do this if you were pasting, though.
- Fix up typing attributes every time you change the selection.
- Not fix things up in certain situations (for instance when scriptwriting changes typing attributes to something else).
- Use hacks to get around Apple’s auto-correction also triggering the bug.
So I have a horrible, horrible workaround ready to go, but I’ll only release a version containing it if Apple doesn’t fix the bug, because it’s a last resort. Unfortunately, Scrivener is the only app I can find that is affected by it so far, because very few apps use the rich text formatting features of UITextView like we do. Markdown editors use Markdown for the formatting and override formatting as you type, and Apple uses a custom text engine or web views for its own apps rather than use the text engine it provides developers.
I’m sorry I don’t have anything that get you up and running right now, but it’s a bit of a show-stopping bug.