Posts

Post not yet marked as solved
0 Replies
326 Views
Hello everyone, I am stuck about this goal.«Learn about the map method, and use it in place of the loop that converts the array of characters to an array of strings in updateUI().»I have read Documentation and other forums, but still al my tries did not work.// change loop below to map method for letter in currentGame.formattedWord { letters.append(String(letter)) } let wordWithSpacing = letters.joined(separator: " ") correctWordLabel.text = wordWithSpacing scoreLabel.text = "Wins: \(totalWins), Losses: \(totalLosses)" treeImageView.image = UIImage(named: "Tree \(currentGame.incorrectMovesRemaining)") }Thanks for help
Posted
by Gleboss.
Last updated
.