Skip to content

Conversation

AngeloStavrow
Copy link
Collaborator

Closes #73.

This PR will probably have some conflicts with #160, but otherwise removes the GeometryReader that was being used to set the width of the bottom toolbar — this was causing the dismissed post to be pushed back onto the navigation stack when the post list re-rendered. To replicate the bottom bar layout, I replaced it with a simple view that presents the same elements: the settings button, the number of posts in the list, and the refresh button. The only tricksy thing we're doing here is setting the height of the frame based on the safeAreaInset, to make sure that it clears the home navigation bar on devices that don't have a physical home button:

Compared with a phone that has a physical home button:

Fixes a bug where tapping the new-post button creates the new local draft, but doesn’t automatically load it in the post editor until you open, and then dismiss, the settings sheet.
@AngeloStavrow AngeloStavrow added the ios Anything specific to the iPhone/iPad app label Jan 4, 2021
@AngeloStavrow AngeloStavrow added this to the 1.0.2 milestone Jan 4, 2021
@AngeloStavrow AngeloStavrow requested a review from thebaer January 4, 2021 18:11
@AngeloStavrow AngeloStavrow self-assigned this Jan 4, 2021
Copy link
Member

@thebaer thebaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me based on screenshots and a read-through.

@AngeloStavrow AngeloStavrow merged commit 5557566 into main Jan 11, 2021
@AngeloStavrow AngeloStavrow deleted the fix-dismiss-post-bug branch January 11, 2021 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ios Anything specific to the iPhone/iPad app
Development

Successfully merging this pull request may close these issues.

On launch, the editor should animate into view
2 participants