Skip to content

Commit

Permalink
ver 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
icanzilb committed Jun 19, 2017
1 parent d20399c commit dc92a1a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion SwiftSpinner.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SwiftSpinner"
s.version = "1.2.1"
s.version = "1.3.0"
s.summary = "A beautiful activity indicator written in Swift"
s.description = <<-DESC
SwiftSpinner is an extra beautiful activity indicator with plain and bold style fitting iOS 8 design very well. It uses dynamic blur and translucency to overlay the current screen contents and display an activity indicator with text (or the so called “spinner”).
Expand Down
33 changes: 15 additions & 18 deletions SwiftSpinner/SwiftSpinner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -159,26 +159,23 @@ public class SwiftSpinner: UIView {
#endif
}

DispatchQueue.main.async {

containerView.addSubview(spinner)
containerView.addSubview(spinner)
UIView.animate(withDuration: 0.33, delay: 0.0, options: .curveEaseOut, animations: {

UIView.animate(withDuration: 0.33, delay: 0.0, options: .curveEaseOut, animations: {

spinner.blurView.contentView.alpha = 1
spinner.blurView.effect = spinner.blurEffect

}, completion: nil)
spinner.blurView.contentView.alpha = 1
spinner.blurView.effect = spinner.blurEffect

#if os(iOS)
// Orientation change observer
NotificationCenter.default.addObserver(
spinner,
selector: #selector(SwiftSpinner.updateFrame),
name: NSNotification.Name.UIApplicationDidChangeStatusBarOrientation,
object: nil)
#endif
}
}, completion: nil)

#if os(iOS)
// Orientation change observer
NotificationCenter.default.addObserver(
spinner,
selector: #selector(SwiftSpinner.updateFrame),
name: NSNotification.Name.UIApplicationDidChangeStatusBarOrientation,
object: nil)
#endif
}

spinner.title = title
Expand Down

0 comments on commit dc92a1a

Please sign in to comment.