p2 / OAuth2

OAuth2 framework for macOS and iOS, written in Swift.
Other
1.14k stars 275 forks source link

fixed issue with wrong state-machine after pull down gesture on presented SFSafariViewController #414

Closed cbruns1985 closed 5 months ago

cbruns1985 commented 5 months ago

In case the SFSafariViewController is presented modally, it can be dismissed via pull down gesture. In that case the state machine is completely broken. Therefore I added the presentationDelegate, which ensures that the same logic is triggered as in case the "Finished" button is pressed with this interaction.