项目作者: jwd-ali

项目描述 :
Sometimes simplicity attracts you. Color Fill Loading animation is between those Bar loading animations
高级语言: Swift
项目地址: git://github.com/jwd-ali/BarLoading.git
创建时间: 2020-09-09T04:04:18Z
项目社区:https://github.com/jwd-ali/BarLoading

开源协议:MIT License

下载



BarLoading

Add 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

CocoaPods

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

  1. use_frameworks!
  2. pod 'BarLoading'

Then, run the following command:

  1. $ pod install

Carthage

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

  1. github "jwd-ali/BarLoading"

Manually

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

  • Add sources into your project:

    • Drag BarLoading.swift, Tracks.swift and CALayer+Extension.swift

    Usage

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

  1. import BarAimation

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

  1. var progessView = BarLoading()

Then in which view you want to show progress call

  1. progessView.StartAnimating(in: self.view)

To stop and hide call

  1. 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

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