HZActivityIndicatorView
HZActivityIndicatorView copied to clipboard
Wrong algorithm
I wasn't able to quickly come up with explanation, but the angles are ok (seem to be) only for 12 fins. As soon as I set them to 16 or any other "symetrical" number, it is not aligned correctly. There is a delta in each step that in the end creates a big gap between the first and the last pin.
It's a rounding error, the algorithm itself is correct. See https://github.com/revetkn/HZActivityIndicatorView/commit/db3e670c259d5e6c3650967c9bf4b69ba93144f9