Post

Replies

Boosts

Views

Activity

Reply to ForEach doesn't update on items with the same ID
Okay so I've tried adding this to my after my method but im not sure how to fix the error func getLettersIDs() -> Array<Character> { AppData.getLetters().forEach { let idletters = Letter(letters: $0) //I get this error 'Cannot convert return expression of type '()' to return type 'Array<Character>'' return idletters } } struct Letter: Identifiable { var id = UUID() var letters: Character }
Dec ’21