From 42e22ecf378116e30c9a4df94c079d60b7651cf0 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Thu, 8 Oct 2026 21:24:49 -0700 Subject: [PATCH] =?UTF-8?q?Ensure=20Feedly=20sign-in=20has=20a=20presentat?= =?UTF-8?q?ionAnchor=20=E2=80=94=C2=A0don=E2=80=99t=20run=20it=20if=20not.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/Settings/AddAccountView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/iOS/Settings/AddAccountView.swift b/iOS/Settings/AddAccountView.swift index d4dd18915..c540b0117 100644 --- a/iOS/Settings/AddAccountView.swift +++ b/iOS/Settings/AddAccountView.swift @@ -13,7 +13,7 @@ import Account /// The list of account types the user picks from. Pushed onto the Settings navigation stack. struct AddAccountView: View { - /// Window the Feedly OAuth sheet attaches to. Nil is tolerated by the operation. + /// Window the Feedly OAuth sheet attaches to. Feedly can’t be added without one. let presentationAnchor: ASPresentationAnchor? /// Called after an account is added so the host can pop this screen. let didAddAccount: () -> Void @@ -162,6 +162,10 @@ struct AddAccountView: View { } private func startOAuth(for accountType: AccountType) { + guard let presentationAnchor else { + return + } + oauthHandler.didCreateAccount = { account in account.triggerRefreshAll() didAddAccount()