# Text Area

Text View allows the user to enter **more than one line** of text. A textView image is and its code is shown below.

![A Text View Example](https://479678609-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MEfkN8oSQyQ4BaBzwxH%2F-MGrIvvQkqS1zsILEfc7%2F-MGsAY-is6wUB907gj3K%2FGroup%2011.png?alt=media\&token=993d38ec-7fa5-4620-bc28-f150cf268f8a)

While creating the component, Monday Hero automatically detects the **text** and **Background** in the TextView.&#x20;

![](https://479678609-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MEfkN8oSQyQ4BaBzwxH%2F-MS36IByj9NhkNkmEyns%2F-MS3GAuaKlMNub0-OuLN%2FtextView-design-to-code.png?alt=media\&token=ece95fb9-0581-4ff5-82fa-0940faf034bd)

### Generated iOS/Android Code of TextView

{% tabs %}
{% tab title="iOS" %}

```swift
//HomePageViewController.swift 
import UIKit

class HomePageViewController: UIViewController {

//Connection from an Interface Builder to a UI component
@IBOutlet private weak var addNotesTextView: UITextView!

	override func viewDidLoad() {
		super.viewDidLoad()
		setupViews()
	}
}

extension HomePageViewController {
	private func setupViews() {
		//TextView properties
		addNotesTextView.backgroundColor = UIColor.daisy2
		addNotesTextView.text = NSLocalizedString("add.note.here", comment: "")
		addNotesTextView.textColor = UIColor.spruce_40
		addNotesTextView.font = UIFont.textStyle5
		addNotesTextView.textAlignment = .left
			}
}		
```

{% endtab %}

{% tab title="Android" %}
Android does not have a separate component for Text Areas, the same code is used for the [Texts](https://learn.mondayhero.io/design-to-swift/creating-components/system-components/broken-reference) are also used for Text Areas.&#x20;

{% content-ref url="broken-reference" %}
[Broken link](https://learn.mondayhero.io/design-to-swift/creating-components/system-components/broken-reference)
{% endcontent-ref %}
{% endtab %}
{% endtabs %}
