-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing in binding for index disables animations. #6
Comments
Yes, the problem still persists and this turns the package unusable for many situations, which is unfortunate given its quality... I hope that this can get fixed! |
@josephmannis @miguel-arrf e.g ACarousel(["1","2","3","4"], id: \.self, index: $currIndex,...){ ... } e.g with struct struct Item: Identifiable, Hashable {
let id = UUID()
let name: String
}
ACarousel([Item(name:"t"), Item(name:"e"), Item(name:"s"), Item(name:"t")], id: \.name, index: $currIndex,...){ ... } For some reason, I haven't figured out yet using |
Using your code I get
in the console, is this ok? I guess that's how wrap works in this library? |
Example:
In this case, the animations will not occur properly. Demo:
https://drive.google.com/file/d/1asAYFM6B3ZREpgqhD4Kr3behYqe2bsy9/view?usp=sharing
The text was updated successfully, but these errors were encountered: