using .background(AnyView(Color.white)) results in an error #74
-
I tried adding a background color to the bottom sheet but the compiler throws this error "Cannot convert value of type 'AnyView' to expected argument type '() -> AnyView' " |
Beta Was this translation helpful? Give feedback.
Answered by
lucaszischka
Mar 16, 2022
Replies: 1 comment
-
Yes, the syntax was changed to a closure in main. Please use .background({
AnyView(
Color.white
)
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lucaszischka
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, the syntax was changed to a closure in main. Please use