title: Adding font size and custom font name to attributed string in UITextView
body: <p>I have the following code to add the attributed string to the UITextView text. I need to add the custom font and font size to it in swift. How to do it?</p>
  
  <pre><code>    func setAttributedString(string: String) -&gt; NSAttributedString {
      let attrString = NSMutableAttributedString(string: string)
      let paragraphStyle = NSMutableParagraphStyle()
      paragraphStyle.lineSpacing = 7
      paragraphStyle.minimumLineHeight = 7
      attrString.addAttribute(NSParagraphStyleAttributeName, value:paragraphStyle, range:NSRange(location: 0, length:attrString.length))
      attrString.addAttribute(NSFontAttributeName, value: UIFont.systemFont(ofSize: 30), range: NSRange(location: 0, length:attrString.length))
      return attrString
    }
  </code></pre>
  
  <p>I need to add the custom font and font size to the following function. How to achieve this?</p>