I understood the explanation here, but how can I solve it with another method? Swift 5 : What's 'Escaping closure captures mutating 'self' parameter' and how