I asked a question about SwiftUI with the original title of the following:
How can I access other views/view properties declared in the same view in SwiftUI?
Here's the original question before the edit.
After I got an amazing answer from user J. Doe (here's the original state of the answer), I realized that this title is confusing and my original question is really two questions in one (accessing modifiers of a view and declaring a view as a variable in the body
of a view).
So, I edited the question to be only about declaring a view as a variable and asked a new question which is only about accessing the modifiers of a view. I included the link of the new question in a comment under the (now accepted) answer and suggested that they should remove the first half of the answer and include it in an answer under the new question.
I could've written a community wiki answer under the second question, but I didn't want to "steal" upvotes from J. Doe, so I chose the option above.
I upvoted and accepted both answers by J. Doe.
Did I do anything wrong here? If so, what should I do differently in a similar situation?
Also, to be honest, I'm kind of afraid of the Meta effect. If I did something horrible here, feel free to vote my questions down, but I really don't want any of my answerers to be affected by this.