Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-08-17 14:41:49 -05:00
parent f44ac60f88
commit a9358c9892

View File

@ -90,7 +90,7 @@ class LabelViewController: ModelViewController<DefaultLabelModel>, StoryboardIni
}
@IBAction func textDidEnd(_ sender: UITextField) {
label.text = sender.text ?? "Label Component"
label.text = sender.text?.replacingOccurrences(of: "\\n", with: "\n") ?? "Label Component"
sender.resignFirstResponder()
}