All Projects → bdolewski → CircularProgressView

bdolewski / CircularProgressView

Licence: MIT license
Circular and animated progress bar for iOS

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to CircularProgressView

OMJoystick
This is the JoyStick UI library for SwiftUI.
Stars: ✭ 15 (-40%)
Mutual labels:  spm, swiftpackagemanager
BottomSheet
A BottomSheet component made with UIKit. Completely written in Swift 🧡
Stars: ✭ 62 (+148%)
Mutual labels:  spm, swiftpackagemanager
Buymeacoffee
Buy Me a Coffee framework for iOS
Stars: ✭ 145 (+480%)
Mutual labels:  spm
SupportEmail
Pre-populates emails with support information in iOS/iPadOS apps
Stars: ✭ 20 (-20%)
Mutual labels:  spm
Http
🚀 Non-blocking, event-driven HTTP built on Swift NIO.
Stars: ✭ 220 (+780%)
Mutual labels:  spm
Websocket Kit
WebSocket client library built on SwiftNIO
Stars: ✭ 155 (+520%)
Mutual labels:  spm
Vellum
Vellum is local persistent data storage for iOS
Stars: ✭ 16 (-36%)
Mutual labels:  swiftpackagemanager
Swiftuiblurview
This view is also part of SwiftUIKit: https://github.com/danielsaidi/SwiftUIKit
Stars: ✭ 120 (+380%)
Mutual labels:  spm
SwiftDown
📦 A themable markdown editor component for your SwiftUI apps.
Stars: ✭ 203 (+712%)
Mutual labels:  spm
Grdbcombine
GRDB ❤️ Combine
Stars: ✭ 220 (+780%)
Mutual labels:  spm
SwiftMark
[⚠️Not a complete implementation] A Markdown renderer written in Swift.
Stars: ✭ 77 (+208%)
Mutual labels:  spm
Aksidemenu
Beautiful iOS side menu library with parallax effect. Written in Swift
Stars: ✭ 216 (+764%)
Mutual labels:  spm
Flexcolorpicker
Modern color picker library written in Swift 5 that can be easily extended and customized. It aims to provide great UX and performance with stable, quality code.
Stars: ✭ 164 (+556%)
Mutual labels:  spm
extensions-kit
📦 Collection of Swift+Apple Frameworks extensions for speeding up software development [iOS & iPadOS].
Stars: ✭ 71 (+184%)
Mutual labels:  spm
Color
Color utilities for macOS, iOS, tvOS, and watchOS
Stars: ✭ 145 (+480%)
Mutual labels:  spm
CSV
A simple CSV file parser and serializer
Stars: ✭ 31 (+24%)
Mutual labels:  spm
Mint
A package manager that installs and runs executable Swift packages
Stars: ✭ 1,750 (+6900%)
Mutual labels:  spm
Shsearchbar
The search bar that doesn't suck.
Stars: ✭ 206 (+724%)
Mutual labels:  spm
Swiftpackageindex Server
The Swift Package Index is the place to find Swift packages!
Stars: ✭ 228 (+812%)
Mutual labels:  spm
Match3Kit
Library for simple Match3 games.
Stars: ✭ 38 (+52%)
Mutual labels:  spm

CircularProgressView

SPM Carthage CocoaPods Platform

Circular and animated progress bar for iOS. It has configurable properties of bars, text and colors. Included animation for filling up the track.

Imgur

Available properties

lineWidth

Size of the bar (stroke width) - default value is CGFloat(12.0)

// Change stroke to 18
bar.lineWidth = CGFloat(18.0)
text

Text to be displayed in the middle - default value is nil

// Set the text inside progress view
bar.text = "Calories intake"
attributedText

Attributed text to be displayed in the middle - default value is nil

// Set the attributed text inside progress view
bar.attributedText = "Calories intake"
textColor

Color for text inside progress bar when no attributedText is used - default value is UIColor.darkGray

// Set the color for text inside progress view
bar.textColor = .systemRed
textSize

Font size for text inside progress bar - default value is CGFloat(16.0)

// Set the font size of text inside progress view
bar.textSize = CGFloat(20)
backgroundBarColor

Color for background (base) track - default value is UIColor.systemGray

// Set the background color of track
bar.backgroundBarColor = .white
foregroundBarColor

Color for foreground (main) track - default value is UIColor.systemBlue

// Set the foreground color of track
bar.foregroundBarColor = .yellow
maximumBarColor

Color for the foreground (main) track when it reaches the maximum value (full circle) - default value is UIColor.systemRed

// Set the color of track when full circle is drawn
bar.maximumBarColor = .orange
animationDuration

Duration of the "filling" animation - default value is TimeInterval(1.0)

// Make the animations slow like in the demo bellow
bar.animationDuration = TimeInterval(3.0)

Available functions

setProgress(to:animated:)
    /// Set the visual impression of progress on this UIView
    ///
    /// - Parameters:
    ///   - progress: normalized value from range [0,1] however upper bound will be clamped
    ///   - animated: Switch animations on/off
    public func setProgress(to progress: Double, animated: Bool)

Difference between animation set to True and False - Example:

Example

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].