How do I add an edit button to power Apps?
I assume you are using an embedded powerapp in sharepoint. You basically need to use a variable set it to true when the page is visible and set the buttons visibility to the value of the variable. You would then update the variable when the button is clicked and thus making it invisible. I hope this helps.
What is the Edit button?
A longtime request from Twitter's user base, the edit button allows users to edit their tweets for up to 30 minutes after posting — something that could help users clarify or correct a mistake in their tweet, fix a small typo or add hashtags, among other things.