This project includes solutions to the challenges.
- Use the techniques you learned in project 2 to draw a thin gray line around the buttons view, to make it stand out from the rest of the UI.
- If the user enters an incorrect guess, show an alert telling them they are wrong. You’ll need to extend the
submitTapped()
method so that iffirstIndex(of:)
failed to find the guess you show the alert. - Try making the game also deduct points if the player makes an incorrect guess. Think about how you can move to the next level – we can’t use a simple division remainder on the player’s
score
any more, because they might have lost some points.
- Project 9 - Modify project 8 so that loading and parsing a level takes place in the background. Once you’re done, make sure you update the UI on the main thread!
- Project 15 - Go back to project 8 and make the letter group buttons fade out when they are tapped. We were using the
isHidden
property, but you'll need to switch toalpha
becauseisHidden
is either true or false, it has no animatable values between.