To run the example project, clone the repo, and run pod install
from the Example directory first.
Progress | Amplitude |
---|---|
Color | Progress Text |
---|---|
- iOS 8.0+
- Xcode 9.2
- Change the class of a view from UIView to HeartLoadingView
- Programmatically:
let heartLoadingView = HeartLoadingView(frame: yourFrame)
- Progress level (0..<1)
heartLoadingView.progress = 0.5
- Amplitude
heartLoadingView.amplitude = 50.0
- Progress Text
heartLoadingView.isShowProgressText = true
- Progress Text Font
heartLoadingView.progressTextFont = UIFont.systemFont(ofSize: 15.0)
- Colors
heartLoadingView.heavyHeartColor = randomColor
heartLoadingView.lightHeartColor = randomColor.withAlphaComponent(0.5)
heartLoadingView.fillHeartColor = randomColor.withAlphaComponent(0.2)
- Animation
heartLoadingView.isAnimated = true
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"
Dima Shvets, aoedima@gmail.com
HeartLoadingView is available under the MIT license. See the LICENSE file for more info.