Planning to use the same text view in multiple places in the app so planning to create text view component without xib/Storyboard so that the same can be reuse in multiple places.

I'm a junior developer how can we create a text view component programmatically which can display two lines of text as shows in below screenshot.

[![screenshot](https://i.stack.imgur.com/NHyqW.png)](https://i.stack.imgur.com/NHyqW.png)

Created a class of text view and trying to add text in it. please advice/suggest the flow to implement this.

```
@IBDesignable public class HyperLinksTextView: UITextView {
required public init?(coder: NSCoder) {
    super.init(coder: coder)
    self.backgroundColor = .clear
    createTextView()
}

func createTextView() {

}

```

}