mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-28 05:35:54 +03:00
[GH-ISSUE #580] Dismissing bug with SFsafari #378
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#378
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aakarshsasi on GitHub (Mar 27, 2020).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/580
Description:
I am presenting a view controller modally and when a button is pressed on that SFSafariViewController is used to authenticate the user. I am calling the handle.dissmisscompletion to know if the dismiss is completed. The dismiss completion is excecuted correctly. But the problem is it does not dismiss the handler(Safari), but it dismisses the view controller I am using to present the signup button.
This is happening only when modalPresentationStyle = . overCurrentContext
OAuth Provider? (Twitter, Github, ..): Twitter
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
[x ] 11.x (Swift 5.1)
10.x (Swift 5.0)
10.x (Swift 4.1)
9.3 (Swift 4.1)
9.0 (Swift 4.0)
other: (Please fill in the version you are using.)
objective c
@nonegu commented on GitHub (Mar 27, 2020):
Following might be the problem here.
Please refer to the documentation if this is the case.
https://developer.apple.com/documentation/uikit/uiviewcontroller/1621505-dismiss
@aakarshsasi commented on GitHub (Mar 28, 2020):
There is only one view controller present in the stack, on top of which the safari view controller is presented. It is happening only when using modalpresentationstyle as .overCurrentContext and not when using .currentContext or .fullScreen
@phimage commented on GitHub (Jul 11, 2020):
in this situation you must debug to provide more information... or provide ready demo app with the issue
when you build your safari controller you pass a controller
this controller is used to present and dismiss the safari controller, not complicated to see it
github.com/OAuthSwift/OAuthSwift@8c931c76de/Sources/Handler/SafariURLHandler.swift (L44)You can customise the
UITransition, make your own, etc.. there is a constructor with thatThen the dismiss is here
github.com/OAuthSwift/OAuthSwift@8c931c76de/Sources/Handler/SafariURLHandler.swift (L92)