Embed views using embed segue instead of MPRootSegue.
This commit is contained in:
		@@ -49,7 +49,6 @@
 | 
			
		||||
		93D39A5FF670957C0AF8298D /* MPSiteCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 93D39DEA995041A13DC9CAF7 /* MPSiteCell.m */; };
 | 
			
		||||
		93D39A8EA1C49CE43B63F47B /* PearlUICollectionView.m in Sources */ = {isa = PBXBuildFile; fileRef = 93D39D8A953779B35403AF6E /* PearlUICollectionView.m */; };
 | 
			
		||||
		93D39AA4A0BE66A872CCC02E /* NSPersistentStore+PearlMigration.h in Headers */ = {isa = PBXBuildFile; fileRef = 93D397F4BAFFF7CF3F1B21A4 /* NSPersistentStore+PearlMigration.h */; };
 | 
			
		||||
		93D39B429C67A62E29DC02DA /* MPRootSegue.m in Sources */ = {isa = PBXBuildFile; fileRef = 93D399493FEDDE74DD1A0C15 /* MPRootSegue.m */; };
 | 
			
		||||
		93D39B76DD5AB108BA8928E8 /* UIScrollView+PearlAdjustInsets.h in Headers */ = {isa = PBXBuildFile; fileRef = 93D39DE2CB351D4E3789462B /* UIScrollView+PearlAdjustInsets.h */; };
 | 
			
		||||
		93D39B842AB9A5D072810D76 /* NSError+PearlFullDescription.h in Headers */ = {isa = PBXBuildFile; fileRef = 93D398C95847261903D781D3 /* NSError+PearlFullDescription.h */; };
 | 
			
		||||
		93D39B8F90F58A5D158DDBA3 /* MPSitesViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 93D3924EE15017F8A12CB436 /* MPSitesViewController.m */; };
 | 
			
		||||
@@ -476,7 +475,6 @@
 | 
			
		||||
		93D391943675426839501BB8 /* MPLogsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPLogsViewController.h; sourceTree = "<group>"; };
 | 
			
		||||
		93D391AA32F24290C424438E /* NSNotificationCenter+PearlEasyCleanup.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSNotificationCenter+PearlEasyCleanup.h"; sourceTree = "<group>"; };
 | 
			
		||||
		93D39246FC21C6E63E35D615 /* UICollectionView+PearlReloadItems.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UICollectionView+PearlReloadItems.h"; sourceTree = "<group>"; };
 | 
			
		||||
		93D3924D6F77E6BF41AC32D3 /* MPRootSegue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPRootSegue.h; sourceTree = "<group>"; };
 | 
			
		||||
		93D3924EE15017F8A12CB436 /* MPSitesViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPSitesViewController.m; sourceTree = "<group>"; };
 | 
			
		||||
		93D392876BE5C011DE73B43F /* MPPopdownSegue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPPopdownSegue.h; sourceTree = "<group>"; };
 | 
			
		||||
		93D392C5A6572DB0EB5B82C8 /* mpw-types.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "mpw-types.c"; sourceTree = "<group>"; };
 | 
			
		||||
@@ -505,7 +503,6 @@
 | 
			
		||||
		93D398C95847261903D781D3 /* NSError+PearlFullDescription.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSError+PearlFullDescription.h"; sourceTree = "<group>"; };
 | 
			
		||||
		93D3990D850D76A94C6B7A4D /* mpw-algorithm.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "mpw-algorithm.h"; sourceTree = "<group>"; };
 | 
			
		||||
		93D3990E0CD1B5CF9FBB2C07 /* MPWebViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPWebViewController.m; sourceTree = "<group>"; };
 | 
			
		||||
		93D399493FEDDE74DD1A0C15 /* MPRootSegue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPRootSegue.m; sourceTree = "<group>"; };
 | 
			
		||||
		93D3995B1D4DCE5A30D882BA /* MPCoachmarkViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPCoachmarkViewController.m; sourceTree = "<group>"; };
 | 
			
		||||
		93D39975CE5AEC99E3F086C7 /* MPSiteCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPSiteCell.h; sourceTree = "<group>"; };
 | 
			
		||||
		93D3999693660C89A7465F4E /* MPCoachmarkViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPCoachmarkViewController.h; sourceTree = "<group>"; };
 | 
			
		||||
@@ -2784,8 +2781,6 @@
 | 
			
		||||
				93D39B050DD5F55E9794EFD4 /* MPPopdownSegue.m */,
 | 
			
		||||
				DABD3BEA1711E2DC00CF925C /* MPPreferencesViewController.h */,
 | 
			
		||||
				DABD3BEB1711E2DC00CF925C /* MPPreferencesViewController.m */,
 | 
			
		||||
				93D3924D6F77E6BF41AC32D3 /* MPRootSegue.h */,
 | 
			
		||||
				93D399493FEDDE74DD1A0C15 /* MPRootSegue.m */,
 | 
			
		||||
				93D39730673227EFF6DEFF19 /* MPSetupViewController.h */,
 | 
			
		||||
				93D39A28369954D147E239BA /* MPSetupViewController.m */,
 | 
			
		||||
				93D39975CE5AEC99E3F086C7 /* MPSiteCell.h */,
 | 
			
		||||
@@ -3642,7 +3637,6 @@
 | 
			
		||||
				93D399D7E08A142776A74CB8 /* MPOverlayViewController.m in Sources */,
 | 
			
		||||
				DA46021D23D5E30B00398FF4 /* MPSecrets.m in Sources */,
 | 
			
		||||
				93D39A27F2506C6FEEF9C588 /* MPAlgorithmV2.m in Sources */,
 | 
			
		||||
				93D39B429C67A62E29DC02DA /* MPRootSegue.m in Sources */,
 | 
			
		||||
				93D392FD5E2052F7D7DB3774 /* NSString+MPMarkDown.m in Sources */,
 | 
			
		||||
				93D395B715D15F2B56F2A2EE /* mpw-types.c in Sources */,
 | 
			
		||||
				93D39943D01E70DAC3B0DF76 /* mpw-util.c in Sources */,
 | 
			
		||||
 
 | 
			
		||||
@@ -31,7 +31,6 @@
 | 
			
		||||
    [super viewDidLoad];
 | 
			
		||||
 | 
			
		||||
    self.mode = MPCombinedModeUserSelection;
 | 
			
		||||
    [self performSegueWithIdentifier:@"users" sender:self];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
- (void)viewWillAppear:(BOOL)animated {
 | 
			
		||||
 
 | 
			
		||||
@@ -33,13 +33,6 @@
 | 
			
		||||
    self.dismissSegueByButton = [NSMutableDictionary dictionary];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
- (void)viewDidLoad {
 | 
			
		||||
 | 
			
		||||
    [super viewDidLoad];
 | 
			
		||||
 | 
			
		||||
    [self performSegueWithIdentifier:@"root" sender:self];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
- (UIViewController *)childViewControllerForStatusBarStyle {
 | 
			
		||||
 | 
			
		||||
    return [self.childViewControllers lastObject];
 | 
			
		||||
 
 | 
			
		||||
@@ -1,23 +0,0 @@
 | 
			
		||||
//==============================================================================
 | 
			
		||||
// This file is part of Master Password.
 | 
			
		||||
// Copyright (c) 2011-2017, Maarten Billemont.
 | 
			
		||||
//
 | 
			
		||||
// Master Password is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// (at your option) any later version.
 | 
			
		||||
//
 | 
			
		||||
// Master Password is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You can find a copy of the GNU General Public License in the
 | 
			
		||||
// LICENSE file.  Alternatively, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
//==============================================================================
 | 
			
		||||
 | 
			
		||||
#import <Foundation/Foundation.h>
 | 
			
		||||
 | 
			
		||||
@interface MPRootSegue : UIStoryboardSegue
 | 
			
		||||
 | 
			
		||||
@end
 | 
			
		||||
@@ -1,35 +0,0 @@
 | 
			
		||||
//==============================================================================
 | 
			
		||||
// This file is part of Master Password.
 | 
			
		||||
// Copyright (c) 2011-2017, Maarten Billemont.
 | 
			
		||||
//
 | 
			
		||||
// Master Password is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// (at your option) any later version.
 | 
			
		||||
//
 | 
			
		||||
// Master Password is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You can find a copy of the GNU General Public License in the
 | 
			
		||||
// LICENSE file.  Alternatively, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
//==============================================================================
 | 
			
		||||
 | 
			
		||||
#import "MPRootSegue.h"
 | 
			
		||||
 | 
			
		||||
@implementation MPRootSegue
 | 
			
		||||
 | 
			
		||||
- (void)perform {
 | 
			
		||||
 | 
			
		||||
    UIViewController *sourceViewController = self.sourceViewController;
 | 
			
		||||
    UIViewController *destinationViewController = self.destinationViewController;
 | 
			
		||||
    [sourceViewController addChildViewController:destinationViewController];
 | 
			
		||||
    destinationViewController.view.frame = sourceViewController.view.bounds;
 | 
			
		||||
    destinationViewController.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
 | 
			
		||||
    [sourceViewController.view addSubview:destinationViewController.view];
 | 
			
		||||
    [destinationViewController didMoveToParentViewController:sourceViewController];
 | 
			
		||||
    [sourceViewController setNeedsStatusBarAppearanceUpdate];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@end
 | 
			
		||||
@@ -43,7 +43,7 @@
 | 
			
		||||
        UIView *sitesView = sitesVC.view;
 | 
			
		||||
        sitesView.frame = combinedVC.view.bounds;
 | 
			
		||||
        sitesView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
 | 
			
		||||
        [combinedVC.view insertSubview:sitesView belowSubview:combinedVC.usersVC.view];
 | 
			
		||||
        [combinedVC.view insertSubview:sitesView belowSubview:combinedVC.usersVC.view.superview];
 | 
			
		||||
 | 
			
		||||
        [sitesVC setActive:YES animated:self.animated completion:^(BOOL finished) {
 | 
			
		||||
            if (!finished)
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
    <device id="retina6_1" orientation="portrait" appearance="light"/>
 | 
			
		||||
    <dependencies>
 | 
			
		||||
        <deployment identifier="iOS"/>
 | 
			
		||||
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16086"/>
 | 
			
		||||
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
 | 
			
		||||
        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
 | 
			
		||||
    </dependencies>
 | 
			
		||||
    <customFonts key="customFonts">
 | 
			
		||||
@@ -69,7 +69,7 @@
 | 
			
		||||
                                        </collectionViewFlowLayout>
 | 
			
		||||
                                        <cells>
 | 
			
		||||
                                            <collectionViewCell opaque="NO" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="MPAvatarCell" id="Zab-uQ-uk9" customClass="MPAvatarCell">
 | 
			
		||||
                                                <rect key="frame" x="80" y="114.5" width="215" height="667"/>
 | 
			
		||||
                                                <rect key="frame" x="80" y="115" width="215" height="667"/>
 | 
			
		||||
                                                <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
 | 
			
		||||
                                                <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
 | 
			
		||||
                                                    <rect key="frame" x="0.0" y="0.0" width="215" height="667"/>
 | 
			
		||||
@@ -531,12 +531,23 @@
 | 
			
		||||
                    <view key="view" contentMode="scaleToFill" id="c4P-nn-PjR">
 | 
			
		||||
                        <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
 | 
			
		||||
                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
 | 
			
		||||
                        <subviews>
 | 
			
		||||
                            <containerView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qca-aL-Un8">
 | 
			
		||||
                                <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
 | 
			
		||||
                                <connections>
 | 
			
		||||
                                    <segue destination="Ac5-na-hOV" kind="embed" identifier="root" id="x4h-Hl-KXD"/>
 | 
			
		||||
                                </connections>
 | 
			
		||||
                            </containerView>
 | 
			
		||||
                        </subviews>
 | 
			
		||||
                        <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
 | 
			
		||||
                        <constraints>
 | 
			
		||||
                            <constraint firstItem="qca-aL-Un8" firstAttribute="top" secondItem="c4P-nn-PjR" secondAttribute="top" id="7ix-Oo-ELN"/>
 | 
			
		||||
                            <constraint firstAttribute="bottom" secondItem="qca-aL-Un8" secondAttribute="bottom" id="JRU-fk-cPG"/>
 | 
			
		||||
                            <constraint firstItem="qca-aL-Un8" firstAttribute="leading" secondItem="c4P-nn-PjR" secondAttribute="leading" id="OAO-XC-DQ1"/>
 | 
			
		||||
                            <constraint firstAttribute="trailing" secondItem="qca-aL-Un8" secondAttribute="trailing" id="R9n-bd-GVl"/>
 | 
			
		||||
                        </constraints>
 | 
			
		||||
                    </view>
 | 
			
		||||
                    <navigationItem key="navigationItem" id="V6W-ql-3TD"/>
 | 
			
		||||
                    <connections>
 | 
			
		||||
                        <segue destination="Ac5-na-hOV" kind="custom" identifier="root" customClass="MPRootSegue" id="UKS-gd-oD2"/>
 | 
			
		||||
                    </connections>
 | 
			
		||||
                </viewController>
 | 
			
		||||
                <placeholder placeholderIdentifier="IBFirstResponder" id="fQY-fV-sIe" userLabel="First Responder" sceneMemberID="firstResponder"/>
 | 
			
		||||
            </objects>
 | 
			
		||||
@@ -557,12 +568,25 @@
 | 
			
		||||
                            <imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" image="background.png" translatesAutoresizingMaskIntoConstraints="NO" id="Lkg-xn-bce" userLabel="Background">
 | 
			
		||||
                                <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
 | 
			
		||||
                            </imageView>
 | 
			
		||||
                            <containerView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="91I-wN-JQb">
 | 
			
		||||
                                <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
 | 
			
		||||
                                <userDefinedRuntimeAttributes>
 | 
			
		||||
                                    <userDefinedRuntimeAttribute type="boolean" keyPath="ignoreTouches" value="YES"/>
 | 
			
		||||
                                </userDefinedRuntimeAttributes>
 | 
			
		||||
                                <connections>
 | 
			
		||||
                                    <segue destination="S8q-YF-Kt9" kind="embed" identifier="users" id="GzD-Zv-DzW"/>
 | 
			
		||||
                                </connections>
 | 
			
		||||
                            </containerView>
 | 
			
		||||
                        </subviews>
 | 
			
		||||
                        <constraints>
 | 
			
		||||
                            <constraint firstItem="91I-wN-JQb" firstAttribute="leading" secondItem="fkJ-D0-yue" secondAttribute="leading" id="E4w-Dw-Vip"/>
 | 
			
		||||
                            <constraint firstItem="Lkg-xn-bce" firstAttribute="top" secondItem="fkJ-D0-yue" secondAttribute="top" id="EIy-Cd-0vW"/>
 | 
			
		||||
                            <constraint firstItem="91I-wN-JQb" firstAttribute="top" secondItem="fkJ-D0-yue" secondAttribute="top" id="EeB-9X-PEK"/>
 | 
			
		||||
                            <constraint firstAttribute="trailing" secondItem="Lkg-xn-bce" secondAttribute="trailing" id="ROW-fK-z92"/>
 | 
			
		||||
                            <constraint firstItem="Lkg-xn-bce" firstAttribute="leading" secondItem="fkJ-D0-yue" secondAttribute="leading" id="UH5-Kk-taJ"/>
 | 
			
		||||
                            <constraint firstAttribute="bottom" secondItem="91I-wN-JQb" secondAttribute="bottom" id="mxv-9s-jxT"/>
 | 
			
		||||
                            <constraint firstAttribute="bottom" secondItem="Lkg-xn-bce" secondAttribute="bottom" id="txR-pf-v3l"/>
 | 
			
		||||
                            <constraint firstAttribute="trailing" secondItem="91I-wN-JQb" secondAttribute="trailing" id="uef-ig-RRl"/>
 | 
			
		||||
                        </constraints>
 | 
			
		||||
                    </view>
 | 
			
		||||
                    <navigationItem key="navigationItem" id="MPa-zX-Kaq"/>
 | 
			
		||||
@@ -570,7 +594,6 @@
 | 
			
		||||
                    <connections>
 | 
			
		||||
                        <segue destination="osn-5H-SWW" kind="custom" identifier="emergency" customClass="MPOverlaySegue" id="gtX-Cx-AA2"/>
 | 
			
		||||
                        <segue destination="nkY-z6-8jd" kind="custom" identifier="passwords" customClass="MPSitesSegue" id="Ozp-YT-Utx"/>
 | 
			
		||||
                        <segue destination="S8q-YF-Kt9" kind="custom" identifier="users" customClass="MPRootSegue" id="StK-nr-nps"/>
 | 
			
		||||
                    </connections>
 | 
			
		||||
                </viewController>
 | 
			
		||||
                <placeholder placeholderIdentifier="IBFirstResponder" id="F33-Fe-Tb6" userLabel="First Responder" sceneMemberID="firstResponder"/>
 | 
			
		||||
@@ -3143,7 +3166,7 @@ Ut in geometria, prima si dederis, danda sunt omnia. Nonne igitur tibi videntur,
 | 
			
		||||
                                        <attributes>
 | 
			
		||||
                                            <color key="NSBackgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
 | 
			
		||||
                                            <color key="NSColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
 | 
			
		||||
                                            <font key="NSFont" metaFont="label" size="12"/>
 | 
			
		||||
                                            <font key="NSFont" metaFont="controlContent"/>
 | 
			
		||||
                                            <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural"/>
 | 
			
		||||
                                        </attributes>
 | 
			
		||||
                                    </fragment>
 | 
			
		||||
@@ -3258,7 +3281,7 @@ Ut in geometria, prima si dederis, danda sunt omnia. Nonne igitur tibi videntur,
 | 
			
		||||
    </scenes>
 | 
			
		||||
    <inferredMetricsTieBreakers>
 | 
			
		||||
        <segue reference="k2G-nL-x3l"/>
 | 
			
		||||
        <segue reference="gtb-zE-u9H"/>
 | 
			
		||||
        <segue reference="GZk-I4-JyH"/>
 | 
			
		||||
    </inferredMetricsTieBreakers>
 | 
			
		||||
    <color key="tintColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
 | 
			
		||||
    <resources>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user