Skip to content

Commit c3e0cf9

Browse files
committed
Added and verified code
1 parent 0d4b247 commit c3e0cf9

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

IHProgressHUD.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Pod::Spec.new do |s|
1111

1212
s.name = 'IHProgressHUD'
13-
s.version = '0.1.5'
13+
s.version = '0.1.6'
1414
s.summary = 'A clean and lightweight progress HUD for iOS and tvOS app based on SVProgressHUD, written in Swift.'
1515
s.license = 'MIT'
1616
s.homepage = 'https://github.com/Swiftify-Corp/IHProgressHUD/'

Sources/IHProgressHUD/IndefiniteAnimatedView.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class IndefiniteAnimatedView : UIView {
2020
private var radius : CGFloat?
2121

2222
override init(frame: CGRect) {
23-
super(frame: frame)
23+
super.init(frame: frame)
2424

2525
if self.superview != nil {
2626
layoutAnimatedLayer()
@@ -156,7 +156,12 @@ extension IndefiniteAnimatedView {
156156
}
157157

158158
func setActivityIndicator(color: UIColor) {
159-
activityIndicator = UIActivityIndicatorView(style: .large)
159+
if #available(iOS 13.0, *) {
160+
activityIndicator = UIActivityIndicatorView(style: .large)
161+
} else {
162+
activityIndicator = UIActivityIndicatorView(style: .whiteLarge)
163+
}
164+
160165
activityIndicator?.hidesWhenStopped = true
161166
activityIndicator?.startAnimating()
162167
activityIndicator?.color = color

Sources/IHProgressHUD/ProgressAnimatedView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ProgressAnimatedView: UIView {
1919
private var ringAnimatedLayer : CAShapeLayer?
2020

2121
override init(frame: CGRect) {
22-
super(frame: frame)
22+
super.init(frame: frame)
2323
}
2424

2525
required init?(coder aDecoder: NSCoder) {

0 commit comments

Comments
 (0)