diff options
author | Jeroen Leenarts <jeroen.leenarts@gmail.com> | 2018-09-18 22:19:03 +0200 |
---|---|---|
committer | Jeroen Leenarts <jeroen.leenarts@gmail.com> | 2018-09-18 22:19:03 +0200 |
commit | 411c919cbfd04588b39f9242359eace91ed70e2c (patch) | |
tree | 6d5f0ceb87e13251457ececdbb5a35d8f2b22d0a /WireGuard | |
parent | Add settings screen. Move export as zip to settings screen. (diff) | |
download | wireguard-apple-411c919cbfd04588b39f9242359eace91ed70e2c.tar.xz wireguard-apple-411c919cbfd04588b39f9242359eace91ed70e2c.zip |
Move add button to bottom toolbar.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard')
-rw-r--r-- | WireGuard/Base.lproj/Main.storyboard | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/WireGuard/Base.lproj/Main.storyboard b/WireGuard/Base.lproj/Main.storyboard index bae91f9..4b0e771 100644 --- a/WireGuard/Base.lproj/Main.storyboard +++ b/WireGuard/Base.lproj/Main.storyboard @@ -13,7 +13,8 @@ <!--Navigation Controller--> <scene sceneID="1sx-zW-OnW"> <objects> - <navigationController storyboardIdentifier="UINavigationController" id="JOA-JU-iCW" sceneMemberID="viewController"> + <navigationController storyboardIdentifier="UINavigationController" toolbarHidden="NO" id="JOA-JU-iCW" sceneMemberID="viewController"> + <toolbarItems/> <navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" largeTitles="YES" id="GsQ-3q-wZr"> <rect key="frame" x="0.0" y="20" width="375" height="96"/> <autoresizingMask key="autoresizingMask"/> @@ -26,6 +27,10 @@ <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> </textAttributes> </navigationBar> + <toolbar key="toolbar" opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="Gaw-oA-bsm"> + <rect key="frame" x="0.0" y="623" width="375" height="44"/> + <autoresizingMask key="autoresizingMask"/> + </toolbar> </navigationController> <placeholder placeholderIdentifier="IBFirstResponder" id="cAJ-Ch-uyg" userLabel="First Responder" sceneMemberID="firstResponder"/> </objects> @@ -86,22 +91,24 @@ <outlet property="delegate" destination="kTU-BV-32R" id="b6T-ZR-cmO"/> </connections> </tableView> + <toolbarItems> + <barButtonItem style="plain" systemItem="flexibleSpace" id="TXL-1f-4BY"/> + <barButtonItem systemItem="add" id="h2H-H8-3Tn"> + <connections> + <action selector="addProvider:" destination="kTU-BV-32R" id="xSg-ap-3Fx"/> + </connections> + </barButtonItem> + </toolbarItems> <navigationItem key="navigationItem" title="WireGuard" largeTitleDisplayMode="always" id="j0L-5U-jDs"> <barButtonItem key="backBarButtonItem" title="Tunnels" id="pxL-gR-QXU"/> - <rightBarButtonItems> - <barButtonItem title=" ⚙︎" id="DZP-sp-Hsg"> - <connections> - <action selector="showSettings:" destination="kTU-BV-32R" id="UfC-XY-zhW"/> - </connections> - </barButtonItem> - <barButtonItem systemItem="add" id="h2H-H8-3Tn"> - <connections> - <action selector="addProvider:" destination="kTU-BV-32R" id="xSg-ap-3Fx"/> - </connections> - </barButtonItem> - </rightBarButtonItems> + <barButtonItem key="rightBarButtonItem" title=" ⚙︎" id="DZP-sp-Hsg"> + <connections> + <action selector="showSettings:" destination="kTU-BV-32R" id="UfC-XY-zhW"/> + </connections> + </barButtonItem> </navigationItem> <simulatedNavigationBarMetrics key="simulatedTopBarMetrics" prompted="NO"/> + <simulatedToolbarMetrics key="simulatedBottomBarMetrics"/> </tableViewController> <placeholder placeholderIdentifier="IBFirstResponder" id="4uZ-Vv-Fry" userLabel="First Responder" sceneMemberID="firstResponder"/> </objects> @@ -572,7 +579,7 @@ <!--Tunnel info--> <scene sceneID="jJx-Qm-bKA"> <objects> - <tableViewController storyboardIdentifier="TunnelInfoTableViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="h8W-vj-IcI" customClass="TunnelInfoTableViewController" customModule="WireGuard" customModuleProvider="target" sceneMemberID="viewController"> + <tableViewController storyboardIdentifier="TunnelInfoTableViewController" hidesBottomBarWhenPushed="YES" useStoryboardIdentifierAsRestorationIdentifier="YES" id="h8W-vj-IcI" customClass="TunnelInfoTableViewController" customModule="WireGuard" customModuleProvider="target" sceneMemberID="viewController"> <tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" allowsSelection="NO" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" id="I7I-Kf-A49"> <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> @@ -826,7 +833,7 @@ <!--Scan Code--> <scene sceneID="gKN-k2-HoW"> <objects> - <viewController storyboardIdentifier="QRScanViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="Efe-yN-iDH" customClass="QRScanViewController" customModule="WireGuard" customModuleProvider="target" sceneMemberID="viewController"> + <viewController storyboardIdentifier="QRScanViewController" hidesBottomBarWhenPushed="YES" useStoryboardIdentifierAsRestorationIdentifier="YES" id="Efe-yN-iDH" customClass="QRScanViewController" customModule="WireGuard" customModuleProvider="target" sceneMemberID="viewController"> <view key="view" contentMode="scaleToFill" id="NXo-On-ea8"> <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> @@ -856,7 +863,7 @@ <!--Settings--> <scene sceneID="LLL-0v-1Z9"> <objects> - <tableViewController storyboardIdentifier="SettingsTableViewController" id="0L2-ND-Twh" customClass="SettingsTableViewController" customModule="WireGuard" customModuleProvider="target" sceneMemberID="viewController"> + <tableViewController storyboardIdentifier="SettingsTableViewController" hidesBottomBarWhenPushed="YES" id="0L2-ND-Twh" customClass="SettingsTableViewController" customModule="WireGuard" customModuleProvider="target" sceneMemberID="viewController"> <tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="static" style="grouped" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" sectionFooterHeight="18" id="xce-Ka-TsV"> <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> |