title: How to set a margin in UITextView?
body: <p>I'm currently developing a simple text-editing app for iPad.
  I want to set left/right margins like the attached picture.
  Just adding UITextView into another UIView with larger width won't work because a scroll indicator won't be properly located.</p>
  
  <p>Instead of UIView, I added UITextView into UIScrollView, and it works almost fine. But they sometimes show strange behaviors, and UITextViewDelegate doesn't work with my UIViewController.</p>
  
  <p>Is there any way to set left/right margins only using UITextView?
  Thank you. </p>
  
  <p><img src="https://i.stack.imgur.com/teYOO.png" alt="alt text"></p>