Skip to content

ShvetsDima/HeartLoadingView

Repository files navigation

HeartLoadingView

./HeartLoadingView

Version Language Supports License Platform

Twitter: @GhazouaniHamza

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Progress Amplitude
Color Progress Text

Requirements

  • iOS 8.0+
  • Xcode 9.2

Usage

  1. Change the class of a view from UIView to HeartLoadingView
  2. Programmatically:
let heartLoadingView = HeartLoadingView(frame: yourFrame)

Customization

  1. Progress level (0..<1)
heartLoadingView.progress = 0.5
  1. Amplitude
heartLoadingView.amplitude = 50.0
  1. Progress Text
heartLoadingView.isShowProgressText = true
  1. Progress Text Font
heartLoadingView.progressTextFont = UIFont.systemFont(ofSize: 15.0)
  1. Colors
heartLoadingView.heavyHeartColor = randomColor
heartLoadingView.lightHeartColor = randomColor.withAlphaComponent(0.5)
heartLoadingView.fillHeartColor = randomColor.withAlphaComponent(0.2)
  1. Animation
heartLoadingView.isAnimated = true

Installation

HeartLoadingView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'HeartLoadingView'

HeartLoadingView is also available through Carthage. To install it, simply add the following line to your Cartfile:

github "ShvetsDima/HeartLoadingView"

Author

Dima Shvets, aoedima@gmail.com

License

HeartLoadingView is available under the MIT license. See the LICENSE file for more info.

About

Beautiful progress loader with wave animation and fully customizable

Resources

License

Stars

Watchers

Forks

Packages

No packages published