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
I've constructed a partial sheet that basically has 3 rows of ScrollViews (horizontal). Each has 2 to 4 items, and the contents are static.
Both PartialSheet 2.0 and 3.0 failed intermittently when opening up this view. They fail at self.isPresented = isPresented in the function below:
public func updatePartialSheet<T>(isPresented: Bool? = nil, content: (() -> T)? = nil, onDismiss: (() -> Void)? = nil) where T: View { if let content = content { self.content = AnyView(content()) } if let onDismiss = onDismiss { self.onDismiss = onDismiss } if let isPresented = isPresented { withAnimation(defaultAnimation) { self.isPresented = isPresented } } }
The error messages I'm seeing for both 2.0 and 3.0 are: [error] precondition failure: setting value during update: 94792
followed by: AttributeGraph precondition failure: setting value during update: 94792.
I'm calling my view using partialSheet<Content: View>(isPresented: Binding<Bool>, @ViewBuilder content: @escaping () -> Content) to present my view.
I do not get the failure when I call partialSheetManager.showPartialSheet(content). However, partial sheet does not always present the entire view.
Is there anything I can try?
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
I've constructed a partial sheet that basically has 3 rows of ScrollViews (horizontal). Each has 2 to 4 items, and the contents are static.
Both PartialSheet 2.0 and 3.0 failed intermittently when opening up this view. They fail at
self.isPresented = isPresented
in the function below:public func updatePartialSheet<T>(isPresented: Bool? = nil, content: (() -> T)? = nil, onDismiss: (() -> Void)? = nil) where T: View { if let content = content { self.content = AnyView(content()) } if let onDismiss = onDismiss { self.onDismiss = onDismiss } if let isPresented = isPresented { withAnimation(defaultAnimation) { self.isPresented = isPresented } } }
The error messages I'm seeing for both 2.0 and 3.0 are:
[error] precondition failure: setting value during update: 94792
followed by:
AttributeGraph precondition failure: setting value during update: 94792.
I'm calling my view using
partialSheet<Content: View>(isPresented: Binding<Bool>, @ViewBuilder content: @escaping () -> Content)
to present my view.I do not get the failure when I call
partialSheetManager.showPartialSheet(content)
. However, partial sheet does not always present the entire view.Is there anything I can try?
Thanks
The text was updated successfully, but these errors were encountered: