mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[PR #673] [MERGED] Open external URL from main thread #713
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#713
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/673
Author: @diogomusou
Created: 8/17/2021
Status: ✅ Merged
Merged: 12/3/2021
Merged by: @phimage
Base:
master← Head:master📝 Commits (1)
910e5bbOpen external URL from main thread📊 Changes
1 file changed (+14 additions, -12 deletions)
View changed files
📝
Sources/Handler/OAuthSwiftOpenURLExternally.swift(+14 -12)📄 Description
Currently it is possible that UIApplication.open(url) is run from a background thread. This causes the app to hang for a while before opening the external browser, and Xcode also shows a warning (see image below).
This change makes sure that this is always run from main thread, clearing the Xcode warning and the delay in the app.
I only tested this on iOS 14 (line 29 of file), but I imagine it works for the other lines as well.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.