You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, the way SwiftUI stores Shape views does not allow to reliably judge on its type, however, as a workaround you can try to compare the returned Shape's path(in rect: CGRect).
hmmm... I actually want a component that based on it's state to render different shapes of the same size... not sure if path(in rect: CGRect) will work. But I think I can wrap the shapes in some other views and query those wrappers to check the right thing is happening
Is there a way to query all the shapes of certain type or check if a Shape view is of a certain type?
maybe something like this?
or
The text was updated successfully, but these errors were encountered: