Skip to content

Update to swift 4.2 #3

@shanezzar

Description

@shanezzar

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions