Replies: 1 comment 7 replies
-
Hard to say without a reproducible sample project. Can you share one? It may just be that the view is too complex for SwiftUI. Is it a big view? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello :)
In one of my scenes, I have a subview in the scene view that may or may not exist so its state is described by an optional property in the state that describes the scene's view. Note that this is not a presentation in the sense of
Destination
,@PresentationState
, etc.Naturally, I went for the use of
IfLetStore
but the compiler gets confused and thinks that I'm trying to use the overload that's applicable for the@PresentationState
case. Or at least that's what I think is happening, because when I replace theIfLetStore
with a "manual" implementation, everything builds fine.The following doesn't compile (the compiler complains about not being able to type-check in a reasonable amount of time):
In
State
:In
Action
:Somewhere inside the
View
's body:while this does:
Has anyone else experienced this kind of behavior? Is there something I can do to nudge the compiler to recognise the overload I want to use?
Many thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions