Skip to content

SimformSolutionsPvtLtd/SSProgressBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSProgressBar

SSProgressBar is an elegant progressbar with many customization options.

Swift Version Build Status License Platform PRs Welcome

Features!

  • Horizontal Gradient
  • Vertical Gradient
  • Custom shadow
  • Corner radious
  • CocoaPods

Requirements

  • iOS 10.0+
  • Xcode 9+

Installation

CocoaPods

  • You can use CocoaPods to install SSSpinnerButton by adding it to your Podfile:

     use_frameworks!
     pod 'SSProgressBar'
    
  •  import UIKit
     import SSProgressBar
    

Manually

  • Download and drop SSProgressBar folder in your project.
  • Congratulations!

Usage example

  • In the storyboard add a UIView and change its class to SSProgressBar

    Set up gradient

     viewProgres.withProgressGradientBackground(from: UIColor.red, to: UIColor.purple, direction: .topToBottom)
    

    Edit properties at anytime

    self.viewProgres.progress = 120
    self.viewProgres.gradientDirection = .leftToRight
    self.viewProgres.colors = [UIColor.blue.cgColor,UIColor.cyan.cgColor,UIColor.black.cgColor]
    

Contribute

  • We would love you for the contribution to SSProgressBar, check the LICENSE file for more info.

Meta

  • Distributed under the MIT license. See LICENSE for more information.