Skip to content

Commit

Permalink
Change initialize parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomohiro Mitsumune committed Mar 25, 2016
1 parent 07c7ce7 commit 7b5cc1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Example/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10102" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10116" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10080"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
</dependencies>
<scenes>
<!--Container-->
Expand Down
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 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)
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 = self.blurEffect ?? UIBlurEffect(style: .Dark)
HUD.HUDVisualEffect = self.visualEffect ?? UIBlurEffect(style: .Dark)
return HUD
}

Expand Down

0 comments on commit 7b5cc1a

Please sign in to comment.