mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[PR #257] [CLOSED] custom modalPresentationStyle in SafariURLHandler #586
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#586
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?
📋 Pull Request Information
Original PR: https://github.com/OAuthSwift/OAuthSwift/pull/257
Author: @teaualune
Created: 8/4/2016
Status: ❌ Closed
Base:
master← Head:SafariURLHandler-modalPresentationStyle📝 Commits (1)
56222e7custom modalPresentationStyle for the SFSafariViewController in SafariURLHandler📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
OAuthSwift/OAuthSwiftURLHandlerType.swift(+4 -0)📄 Description
While using
SafariURLHandlerto implement OAuth flow on an landscaped iPad app, the presentedSFSafariViewControllertransients to a new screen from right to left (i.e. the default behavior ofUIModalPresentationStyle.FullScreen). In order to make the view controller behaves like a modal view, it would be great if we can customize behaviors of the view controller created fromfactory(url).This PR proposes a naïve way to do this by exposing
modalPresentationStyleinSafariURLHandler, thus we can customize the presented modal style by doing so:Or maybe it is better to make a config block/delegate for clients before the controller is presented in
handle(url)? Thanks in advance!🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.