mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #386] Making changes to SFSafariViewController class #248
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#248
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 @dannymout on GitHub (Jun 29, 2017).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/386
With the changes introduced to
SFSafariViewControllerin iOS 10, it makes it possible to customize it a lot more. I'm usingSafariURLHandler, but how can I access the SafariVC to make changes?OS (Please fill the version) :
Library version:
Xcode version:
@phimage commented on GitHub (Jun 30, 2017):
you can set a factory
SafariURLHandler#factorysee https://github.com/OAuthSwift/OAuthSwift/blob/master/Sources/OAuthSwiftURLHandlerType.swift
then there is also
@dannymout commented on GitHub (Jul 4, 2017):
@phimage OK, so how does
SafariURLHandler#factorywork? Do you have a short code example?@phimage commented on GitHub (Jul 4, 2017):
.factory = { safari in
}
Simple closure
@dannymout commented on GitHub (Jul 4, 2017):
@phimage 'safari' is of type URL, that's why I was getting confused with
SafariURLHandler#factory.@phimage commented on GitHub (Jul 4, 2017):
Sorry
, just read the closure type
.factory = { url in
return SafaryXxxxxx(url :url)
}
@phimage commented on GitHub (Jul 5, 2017):
ya but you not post your code, so how I can help? The error message is clear.
please look at demo code in
https://github.com/OAuthSwift/OAuthSwift/blob/master/Demo/Common/ViewController.swift
commited by
github.com/OAuthSwift/OAuthSwift@aceae6aaadlook for
SafariURLHandler@dannymout commented on GitHub (Jul 6, 2017):
@phimage Nevermind Xcode seemed to be acting up. When I looked over the code, mine looked the same, so I tried uncommenting what I wrote, and everything is fine. Thanks!