In my case I have to uncheck the option under Xcode > Settings... > Text Editing > Wrap lines to editor width