title: Line break with CoreText
body: <p>I am trying to adjust the paragraph style settings in CoreText in order to let lines flow nicely. I want to wrap a line by word, but it's not working.</p>
  
  <p>These are my settings, I am not pasting the whole code since the variable names are self-explanatory and reflect the settings in iOS.</p>
  
  <pre><code>_firstLineHeadIndent = 0.0;
  _defaultTabInterval = 36.0;
  _baseWritingDirection = kCTWritingDirectionNatural;
  _alignment = kCTNaturalTextAlignment;
  _lineHeightMultiple = 0.0;
  _minimumLineHeight = 0.0;
  _maximumLineHeight = 10.0;
  _paragraphSpacing = 0.0;
  _listIndent = 0;
  _lineBreakMode = kCTLineBreakByWordWrapping;
  </code></pre>
  
  <p>I attach a screenshot to illustrate more clearly what I mean.</p>
  
  <p><img src="https://i.stack.imgur.com/gVvrZ.png" alt="Not filling line"></p>