From 7b5cc1a24dcb99a4646762ddce4914b3b717d900 Mon Sep 17 00:00:00 2001 From: Tomohiro Mitsumune Date: Fri, 25 Mar 2016 17:32:09 +0900 Subject: [PATCH] Change initialize parameter --- Example/Base.lproj/Main.storyboard | 4 ++-- HUDKit/Classes/Progress/HUDProgressViewController.swift | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Example/Base.lproj/Main.storyboard b/Example/Base.lproj/Main.storyboard index bc07810..843346c 100644 --- a/Example/Base.lproj/Main.storyboard +++ b/Example/Base.lproj/Main.storyboard @@ -1,8 +1,8 @@ - + - + diff --git a/HUDKit/Classes/Progress/HUDProgressViewController.swift b/HUDKit/Classes/Progress/HUDProgressViewController.swift index 90d82e9..4d97b1f 100644 --- a/HUDKit/Classes/Progress/HUDProgressViewController.swift +++ b/HUDKit/Classes/Progress/HUDProgressViewController.swift @@ -67,16 +67,16 @@ public class HUDProgressViewController: UIViewController { } } - public var blurEffect: UIBlurEffect? + public var visualEffect: UIVisualEffect? // MARK: - Initializer - public init(customView: UIView?, status: String?, blurEffect: UIBlurEffect? = nil) { + public init(customView: UIView?, status: String?, visualEffect: UIVisualEffect? = nil) { super.init(nibName: "HUDProgressViewController", bundle: NSBundle(forClass: HUDProgressViewController.self)) self.customView = customView self.status = status - self.blurEffect = blurEffect ?? UIBlurEffect(style: .Dark) + self.visualEffect = visualEffect if let customView = customView { let insets = UIEdgeInsets(top: -30, left: -30, bottom: -30, right: -30) @@ -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 = self.blurEffect ?? UIBlurEffect(style: .Dark) + HUD.HUDVisualEffect = self.visualEffect ?? UIBlurEffect(style: .Dark) return HUD }