It has the bug in which whenever we hange the axis of rotation, there is no animation for the first time. The transition does not exist.
Look at only BoxView.swift
Some hints to fix this bugs:
- look at currentXAxis, currentYAxis, horizontalTranslation
- try adding your own transition
- try the
withAnimation {
//code
}
If you get the solution, either email it to me at [email protected] or send it through whatsapp no. +91 861 89 83 585
To do :
- Fix the bug
- Add inner stroke to each side of the die
- Roll button to arbitrarily roll the die and get a result
- Improve the roll animation
- Multiple dice?
- Dealer v/s user : If the user wins +1, if the dealer wins -1?