I've seen answers before that are updated/edited to add information about new versions (example).
Googling about a problem with Swift returned a question on Stack Overflow and one of its answers fixed my problem.
Said answer only answers the problem for Swift 2 though, there are separate answers for Swift 3 and 4 (none for Swift 5, which is the latest version). Following the example of other edited posts I edited the question to add the code for version 3 and 4 (linking the source), plus my own for version 5, and a short explanation what the code actually does.
This edit was rejected. I understand that my edit added a lot of information but I don't understand how it "intended to address the author of the post" or "deviates from the original intent of the post".
So my question: In what case it it okay to add information about later versions - hence: code that does the same thing but only works with a later version of the programming language? Is it ever okay to add this type of information if you aren't the author of the answer?