Skip to content
Discussion options

You must be logged in to vote

The issue is, that you need to wait for .photoPickerDismissed action (system notifying that full screen cover was dismissed) before you can show an alert.

One option is to add state variable

var maybeAlert: AlertState<PhotoPickerAlertAction>?

When receiving .photoProcessorCompleted, assign to that and on . photoPickerDismissed forward it

case .photoPickerDismissed:
  state.alert = state.maybeAlert
  return .none

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by jaanus
Comment options

You must be logged in to vote
1 reply
@jaanus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
apple bug Something isn't working due to a bug on Apple's platforms.
3 participants
Converted from issue

This discussion was converted from issue #1277 on August 19, 2022 13:30.