Skip to content
Discussion options

You must be logged in to vote

Hmm this is actually something that might be able to be fixed at a library level...
I've worked around it a few different ways before, but the simplest is probably to wrap IfLetStore in a ZStack

ZStack {
  IfLetStore(
    self.store.scope(
      state: \.factPrompt,
      action: AppAction.factPrompt
    ),
    then: FactPrompt.init(store:)
  )
}

then viewStore.send(.dismissButtonTapped, animation: .easeInOut) should work.

Let me know how you go.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@ylorn
Comment options

@iampatbrown
Comment options

@ylorn
Comment options

Answer selected by ylorn
Comment options

You must be logged in to vote
2 replies
@iampatbrown
Comment options

@ylorn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants