Hi, this is an awesome library please maintain it as well as add full screen along with blur effects <3
do something like this too...
extension NVActivityIndicatorType {
private static let _count: NVActivityIndicatorType.RawValue = {
// find the maximum enum value
var maxValue: Int = 0
while let _ = NVActivityIndicatorType(rawValue: maxValue) {
maxValue += 1
}
return maxValue
}()
static func random() -> NVActivityIndicatorType {
// pick and return a new value
let rand = arc4random_uniform(UInt32(_count))
return NVActivityIndicatorType(rawValue: Int(rand))!
}
}
// usage
iprogress.indicatorStyle = .random()