Skip to content

Commit

Permalink
Added and verified code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ibrahimhass committed Feb 5, 2022
1 parent 0d4b247 commit c3e0cf9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion IHProgressHUD.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Pod::Spec.new do |s|

s.name = 'IHProgressHUD'
s.version = '0.1.5'
s.version = '0.1.6'
s.summary = 'A clean and lightweight progress HUD for iOS and tvOS app based on SVProgressHUD, written in Swift.'
s.license = 'MIT'
s.homepage = 'https://github.com/Swiftify-Corp/IHProgressHUD/'
Expand Down
9 changes: 7 additions & 2 deletions Sources/IHProgressHUD/IndefiniteAnimatedView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class IndefiniteAnimatedView : UIView {
private var radius : CGFloat?

override init(frame: CGRect) {
super(frame: frame)
super.init(frame: frame)

if self.superview != nil {
layoutAnimatedLayer()
Expand Down Expand Up @@ -156,7 +156,12 @@ extension IndefiniteAnimatedView {
}

func setActivityIndicator(color: UIColor) {
activityIndicator = UIActivityIndicatorView(style: .large)
if #available(iOS 13.0, *) {
activityIndicator = UIActivityIndicatorView(style: .large)
} else {
activityIndicator = UIActivityIndicatorView(style: .whiteLarge)
}

activityIndicator?.hidesWhenStopped = true
activityIndicator?.startAnimating()
activityIndicator?.color = color
Expand Down
2 changes: 1 addition & 1 deletion Sources/IHProgressHUD/ProgressAnimatedView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ProgressAnimatedView: UIView {
private var ringAnimatedLayer : CAShapeLayer?

override init(frame: CGRect) {
super(frame: frame)
super.init(frame: frame)
}

required init?(coder aDecoder: NSCoder) {
Expand Down

0 comments on commit c3e0cf9

Please sign in to comment.