Skip to content

Commit

Permalink
Change parameter type from UIBlurEffectStyle to UIBlurEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomohiro Mitsumune committed Mar 17, 2016
1 parent a730a55 commit 07c7ce7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions HUDKit/Classes/Progress/HUDProgressViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ public class HUDProgressViewController: UIViewController {
}
}

public var visualEffect: UIBlurEffectStyle?
public var blurEffect: UIBlurEffect?

// MARK: - Initializer

public init(customView: UIView?, status: String?, visualEffect: UIBlurEffectStyle = .Dark) {
public init(customView: UIView?, status: String?, blurEffect: UIBlurEffect? = nil) {
super.init(nibName: "HUDProgressViewController", bundle: NSBundle(forClass: HUDProgressViewController.self))

self.customView = customView
self.status = status
self.visualEffect = visualEffect
self.blurEffect = blurEffect ?? UIBlurEffect(style: .Dark)

if let customView = customView {
let insets = UIEdgeInsets(top: -30, left: -30, bottom: -30, right: -30)
Expand Down Expand Up @@ -119,7 +119,7 @@ extension HUDProgressViewController: UIViewControllerTransitioningDelegate {

public func presentationControllerForPresentedViewController(presented: UIViewController, presentingViewController presenting: UIViewController, sourceViewController source: UIViewController) -> UIPresentationController? {
let HUD = HUDPresentationController(presentedViewController: presented, presentingViewController: presenting)
HUD.HUDVisualEffect = UIBlurEffect(style: self.visualEffect ?? .Dark)
HUD.HUDVisualEffect = self.blurEffect ?? UIBlurEffect(style: .Dark)
return HUD
}

Expand Down

0 comments on commit 07c7ce7

Please sign in to comment.