Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Look into Attempt to present UIAlertController which is already presenting warning #248

Open
njarecha opened this issue Jan 23, 2023 · 1 comment

Comments

@njarecha
Copy link
Contributor

While presenting an alert to enter the password for client certificate, seeing warning related to `already presenting

Simulator Screen Shot - iPhone 14 Pro - 2023-01-23 at 14 45 53

2023-01-23 14:45:44.896226-0800 AuthenticationExample[28329:387920] [DocumentManager] The view service did terminate with error: Error Domain=_UIViewServiceErrorDomain Code=1 "(null)" UserInfo={Terminated=disconnect method}
2023-01-23 14:45:45.005242-0800 AuthenticationExample[28329:387920] [LayoutConstraints] Changing the translatesAutoresizingMaskIntoConstraints property of a UICollectionViewCell that is managed by a UICollectionView is not supported, and will result in incorrect self-sizing. View: <_UIAlertControllerTextFieldViewCollectionCell: 0x13f4083f0; frame = (0 0; 270 24); gestureRecognizers = <NSArray: 0x600001df2520>; layer = <CALayer: 0x6000013beca0>>
2023-01-23 14:45:45.434019-0800 AuthenticationExample[28329:387920] [Presentation] Attempt to present <UIAlertController: 0x149177400> on <_TtGC7SwiftUI19UIHostingControllerGVS_15ModifiedContentVS_7AnyViewVS_12RootModifier__: 0x149027800> (from <UIViewController: 0x13f228090>) which is already presenting <UIAlertController: 0x13d812800>.

Also, test showCertificateImportError which uses Task.sleep to avoid the already presenting warning. If see the warning then try using MainActor.

@njarecha
Copy link
Contributor Author

See #243 (comment) for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant