How do I adjust the line height (line spacing) of a UITextView? Where do I change / add the code? I'm currently trying to add code to the didFinishLaunchingWithOptions
function in the AppDelegate.swift file. Here is my code:
func application(application: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -> Bool {
// Override point for customization after application launch.
var paragraphStyle = NSMutableParagraphStyle()
return true
}
Then I select the UITextView and add User Defined Runtime Attributes of the following:
paragraphStyle.lineSpacing = 40
I already know I'm doing this completely wrong; how I could do it right?