Skip to content

Commit 726d859

Browse files
fixed blur view (added constraints)
1 parent 1f026f1 commit 726d859

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

Questions/Base.lproj/Main.storyboard

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -616,18 +616,17 @@
616616
</mask>
617617
</variation>
618618
</stackView>
619-
<visualEffectView opaque="NO" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Kqw-Be-fSJ">
620-
<rect key="frame" x="72" y="259" width="272" height="218"/>
621-
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
622-
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" ambiguous="YES" id="Tze-AP-TXn">
623-
<rect key="frame" x="0.0" y="0.0" width="272" height="218"/>
619+
<visualEffectView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Kqw-Be-fSJ">
620+
<rect key="frame" x="0.0" y="10" width="414" height="736"/>
621+
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="Tze-AP-TXn">
622+
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
624623
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
625624
<subviews>
626625
<visualEffectView opaque="NO" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="hrL-Vq-v0O">
627-
<rect key="frame" x="0.0" y="0.0" width="272" height="218"/>
626+
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
628627
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
629628
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" ambiguous="YES" id="ctJ-6U-5BN">
630-
<rect key="frame" x="0.0" y="0.0" width="272" height="218"/>
629+
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
631630
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
632631
</view>
633632
<vibrancyEffect>
@@ -715,11 +714,15 @@
715714
<constraint firstItem="xmI-4h-QXk" firstAttribute="width" secondItem="2jS-CG-deB" secondAttribute="width" multiplier="0.5" id="9Nl-J5-JVP"/>
716715
<constraint firstItem="xmI-4h-QXk" firstAttribute="width" secondItem="2jS-CG-deB" secondAttribute="width" multiplier="0.7" id="CRT-Xi-gUp"/>
717716
<constraint firstItem="xmI-4h-QXk" firstAttribute="centerX" secondItem="ohv-Oq-OAF" secondAttribute="centerX" id="DUc-lg-XHA"/>
717+
<constraint firstItem="Kqw-Be-fSJ" firstAttribute="height" secondItem="2jS-CG-deB" secondAttribute="height" id="Jbs-qu-A8K"/>
718+
<constraint firstItem="Kqw-Be-fSJ" firstAttribute="width" secondItem="2jS-CG-deB" secondAttribute="width" id="SGa-Qh-tgq"/>
718719
<constraint firstItem="Iej-e9-J9q" firstAttribute="centerY" secondItem="ohv-Oq-OAF" secondAttribute="centerY" id="TPi-fm-kfU"/>
719720
<constraint firstItem="xmI-4h-QXk" firstAttribute="height" secondItem="ohv-Oq-OAF" secondAttribute="height" multiplier="0.23" id="UtF-A8-zw2"/>
720721
<constraint firstItem="xmI-4h-QXk" firstAttribute="height" secondItem="ohv-Oq-OAF" secondAttribute="height" multiplier="0.42" id="eLs-WN-nbm"/>
721722
<constraint firstItem="Iej-e9-J9q" firstAttribute="centerX" secondItem="ohv-Oq-OAF" secondAttribute="centerX" id="gTt-Vf-0DC"/>
722723
<constraint firstItem="Iej-e9-J9q" firstAttribute="width" secondItem="ohv-Oq-OAF" secondAttribute="width" multiplier="0.9" id="h7W-e9-pV7"/>
724+
<constraint firstItem="Kqw-Be-fSJ" firstAttribute="centerX" secondItem="ohv-Oq-OAF" secondAttribute="centerX" id="ka9-nP-cz4"/>
725+
<constraint firstItem="Kqw-Be-fSJ" firstAttribute="centerY" secondItem="ohv-Oq-OAF" secondAttribute="centerY" id="pgm-NQ-NiP"/>
723726
<constraint firstItem="xmI-4h-QXk" firstAttribute="centerY" secondItem="2jS-CG-deB" secondAttribute="centerY" id="sKy-Ka-psF"/>
724727
<constraint firstItem="Iej-e9-J9q" firstAttribute="height" secondItem="ohv-Oq-OAF" secondAttribute="height" multiplier="0.9" id="xPI-hj-Cns"/>
725728
</constraints>

Questions/QuestionsViewController.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ class QuestionsViewController: UIViewController {
4848
quiz = set.enumerated().makeIterator()
4949
}
5050

51-
blurView.frame = UIScreen.main.bounds
52-
5351
let title = Audio.bgMusic?.isPlaying == true ? "Pause music" : "Play music"
5452
muteMusic.setTitle(title.localized, for: .normal)
5553

0 commit comments

Comments
 (0)