Skip to content

Circular progress view with sections written using SwiftUI

Notifications You must be signed in to change notification settings

cleverClosure/RingProgressView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RingProgressView

Circular progress view with sections written using SwiftUI

Sreen 1

Usage

var sections = [RingSection(start: 0, end: 0.15, color: UIColor.red), RingSection(start: 0.15, end: 0.3, color: UIColor.yellow), RingSection(start: 0.3, end: 0.4, color: UIColor.green), RingSection(start: 0.4, end: 0.7, color:  UIColor.blue)]

RingProgressView(sections: sections)

To animate initial progress use showRing variable

@State var showRing: Bool = false

RingProgressView(sections: sections, showRing: showRing)
    .onAppear {
        self.showRing = true
}

About

Circular progress view with sections written using SwiftUI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages