I recently saw this answer on a question which I had answered. It appeared to me to be the code from my answer (even copying my until-then unique classname), but with some compile-time attributes removed (diff; re-adding whitespace), and a comment saying that this worked for them but my answer did not.
I was concerned that this indicated that my addition of these attributes caused some problem, so I asked "I pasted my answer into a new Xcode 12.2 project and it worked as expected. What went wrong for you?", and I asked the answer author why they chose to post this instead of upvoting mine.
While I didn't get any response from the answer author, the commenter who had said that mine didn't work replied "I don't recall now what the issue was or why I even needed this. Sorry.". Since it had been a few days, I took that as confirmation of my suspicion that this answer just copied my code, removed some stuff that didn't affect how it runs, and posted it as their own. So, I downvoted it because it seemed to me that it's not useful (functions the same as my answer, but with no context as to why), and I flagged it since it seems it should possibly be an edit or a comment on my answer which fixes/explains the problems with the compile-time attributes.
That flag was declined with this message, which didn't help me understand why the moderator believes that this answer was best on its own, rather than an edit/comment on mine:
Why was this answer better as a standalone, rather than an edit to mine? Should I have flagged it as a duplicate instead? I do wish that the original author had noted why they posted it, but the only non-code text of the answer is "for swift 5.0", so I have no insight into why they posted it.