#prework-repo
Changes text and background colors after pushing appropriate buttons, as well as the label's default string. If the the text field is not empty, the label will become the text from the text field. If the label reads the default string and there is nothing written in the text field, pushing the "Change Text String" button will yield "Goodbye!" Otherwise, the label will revert back into its default string.
- 1. User sees custom text in a label - Hello from {name}!
- 2. User see's custom background color.
- 3. User can tap a button to change the text color of the label.
- 1. User can tap a button to change the color of the background view.
- 2. User can tap a button to change the text string of the label - Goodbye 👋.
- 3. User can tap on the background view to reset all views to default settings.
- 4. User can update the label text with custom text entered into the text field.
- a. User can enter text into a text field using the keyboard.
- b. User can tap the "Change text string" button to update the label with the text from the text field.
- c. If the text field is empty, update label with default text string.
- d. The keyboard is dismissed after the button has been tapped.