Skip to content

Commit

Permalink
Merge pull request #9 from hryk224/fix/#8
Browse files Browse the repository at this point in the history
Fix/#8
  • Loading branch information
hryk224 committed Mar 1, 2017
2 parents 487f75f + 5106fdf commit c910def
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Example/Example/Base.lproj/MainViewController.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<!--Main View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
<viewController automaticallyAdjustsScrollViewInsets="NO" id="BYZ-38-t0r" customClass="MainViewController" customModule="Example" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
Expand Down Expand Up @@ -78,23 +77,24 @@
<constraint firstItem="wfy-db-euE" firstAttribute="top" secondItem="5El-06-33n" secondAttribute="bottom" id="Yah-Qo-HTT"/>
<constraint firstAttribute="trailing" secondItem="Ho7-a3-lkY" secondAttribute="trailing" constant="8" id="adQ-XY-qwK"/>
<constraint firstAttribute="trailing" secondItem="b8G-F1-453" secondAttribute="trailing" constant="8" id="eZU-IT-mBu"/>
<constraint firstItem="VK3-wA-HIw" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" id="gEd-gO-DMb"/>
<constraint firstItem="Ho7-a3-lkY" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" constant="8" id="h3c-Yk-iRZ"/>
<constraint firstItem="b8G-F1-453" firstAttribute="top" secondItem="8bC-Xf-vdC" secondAttribute="top" constant="17" id="jKO-uh-ti6"/>
<constraint firstItem="VK3-wA-HIw" firstAttribute="top" secondItem="8bC-Xf-vdC" secondAttribute="top" id="jqD-42-hCv"/>
<constraint firstItem="5El-06-33n" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" id="khc-A2-bXb"/>
<constraint firstItem="5El-06-33n" firstAttribute="top" secondItem="8bC-Xf-vdC" secondAttribute="top" constant="100" id="mwa-Xh-Ruq"/>
<constraint firstAttribute="trailing" secondItem="5El-06-33n" secondAttribute="trailing" id="oXC-Wb-SHt"/>
</constraints>
</view>
<nil key="simulatedStatusBarMetrics"/>
<navigationItem key="navigationItem" id="9n1-jh-5Ja"/>
<connections>
<outlet property="blurEffecrSegmentedControl" destination="Ho7-a3-lkY" id="meq-sq-lcd"/>
<outlet property="styleSegmentedControl" destination="b8G-F1-453" id="31G-Cx-7fe"/>
<outlet property="tableView" destination="5El-06-33n" id="DUc-Mx-Idw"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1" y="47"/>
<point key="canvasLocation" x="-1346" y="75"/>
</scene>
</scenes>
<resources>
Expand Down
2 changes: 1 addition & 1 deletion PCLBlurEffectAlert.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "PCLBlurEffectAlert"
s.version = "2.1.0"
s.version = "2.1.1"
s.summary = "Custom Swift AlertController."
s.homepage = "https://github.com/hryk224/PCLBlurEffectAlert"
s.screenshots = "https://raw.githubusercontent.com/wiki/hryk224/PCLBlurEffectAlert/images/sample1.gif"
Expand Down
4 changes: 4 additions & 0 deletions Sources/PCLBlurEffectAlert+Controller.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ extension PCLBlurEffectAlert {
return view.tintColor
}

open override var prefersStatusBarHidden: Bool {
return presentingViewController?.prefersStatusBarHidden ?? super.prefersStatusBarHidden
}

public convenience init(title: String?,
message: String?,
effect: UIBlurEffect = UIBlurEffect(style: .extraLight),
Expand Down

0 comments on commit c910def

Please sign in to comment.