Reputation: 11
Im having been having this odd problem while coding in my Swift file As soon as I inserted the '.animation' it gave me this error. Is anyone able to help me with this problem?
Button(action: {
self.showDetail.toggle()
}) {
Image(systemName: "chevron.right.circle")
.imageScale(.large)
.rotationEffect(.degrees(showDetail ? 90 : 0)) // <- Type of expression is ambifuous without more context
.padding()
.animation(.easeInOut())
}
Upvotes: 1
Views: 360