Giter Site home page Giter Site logo

jwd-ali / zigprogressview Goto Github PK

View Code? Open in Web Editor NEW
12.0 4.0 1.0 2.35 MB

Add zigzag Progress Animation in just 2 steps in your view developed using CAShapelayer and UIBezierPath drawing with CABasicAnimation.

License: MIT License

Swift 92.38% Objective-C 3.20% Ruby 4.42%
carthage progressview cocoapods xcode ios activity activity-indicator swift swift5-3 iphone

zigprogressview's Introduction

ZigProgressView

Add zigzag Progress Animation in just 2 steps in your view

CI Status CocoaPods Version Carthage Compatible License Platform Swift 5.1




Requirements

  • iOS 10.0+ / Mac OS X 10.9+ / watchOS 2.0+ / tvOS 9.0+
  • Xcode 8.0+

Installation

To integrate ZigProgressView into your Xcode project using CocoaPods, specify it in your Podfile:

use_frameworks!

pod 'ZigProgressView'

Then, run the following command:

$ pod install

To integrate ZigProgressView into your Xcode project using Carthage, specify it in your Cartfile:

github "jwd-ali/ZigProgressView"

Manually

If you prefer not to use a dependency manager, you can integrate ZigProgressView into your project manually.

  • Add sources into your project:

    • Drag ZProgressView.swift and CALayer+Extension.swift

    Usage

If you are using any dependency manager (pods , carthage , package manager)to integrate ZigProgressView. Import ProgressView first:

import ZProgressView

And for Manuall install you dont need to import anything

You need to simply initiate progressView with four colours if you want to customise colors initiate like this

var progessView = ZProgressView() 

OR

 private lazy var progessView: ZProgressView = {
       let progress = ZProgressView()
       progress.color = .black
       progress.strokeWidth = 25
      return progress
}()

Then in which view you want to show progress call

progessView.StartAnimating(in: self.view)

To stop and hide call

progessView.stopAnimating()

For better understanding framework includes example project as well

Congratulations! You're done.

Contributing

I’d love to have help on this project. For small changes please open a pull request, for larger changes please open an issue first to discuss what you’d like to see.

License

ZigProgressView is under MIT. See LICENSE file for more info.

zigprogressview's People

Contributors

jawad-digitify avatar jwd-ali avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

asover98

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.