A material style progress wheel for iOS
Android version by Nico Hormazábal
This is how it looks in indeterminate mode (the spinSpeed here is 0.64 which is the default, look below how to change it):
And in determinate mode (here the spinSpeed is set to 0.333):
iAXMaterialProgress *progress = [[iAXMaterialProgress alloc] init];
...
[self.view addSubview:progress];
[progress start];
- barColor: sets the small bar's color (the spinning bar in the indeterminate wheel, or the progress bar)
- barWidth: the width of the spinning bar
- rimColor: the wheel's border color
- rimWidth: the wheel's width (not the bar)
- spinSpeed: the base speed for the bar in indeterminate mode, and the animation speed when setting a value on progress. The speed is in full turns per - - second, this means that if you set speed as 1.0, means that the bar will take one second to do a full turn.
- barSpinCycleTime: the time in milliseconds the indeterminate progress animation takes to complete (extending and shrinking the bar while spinning)
- circleRadius: the radius of the progress wheel, it will be ignored if you set fillRadius to true
- linearProgress: set to true if you want a linear animation on the determinate progress (instead of the interpolated default one).
- Amir Hossein Aghajari
Copyright 2020 Amir Hossein Aghajari
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.