added bool things

This commit is contained in:
Micah Gomez 2019-12-21 20:05:31 -07:00
parent 5cf9a269cd
commit 5495b90e09
4 changed files with 256 additions and 211 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.DS_Store

View file

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14868" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_5" orientation="portrait" appearance="light"/>
<dependencies>
<deployment version="2304" identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14824"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15508"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
@ -16,67 +16,23 @@
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Select A Backup" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gXr-H3-y6A">
<rect key="frame" x="20" y="152.33333333333334" width="374" height="83"/>
<constraints>
<constraint firstAttribute="height" constant="83" id="WEB-gW-7us"/>
</constraints>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Select A Backup" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gXr-H3-y6A">
<rect key="frame" x="93" y="112" width="228" height="36"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="30"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="YRz-XN-znu">
<rect key="frame" x="0.0" y="-47" width="414" height="174.33333333333334"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Qmu-gf-Vin">
<rect key="frame" x="20" y="157" width="374" height="370"/>
<subviews>
<label opaque="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="FlashBack" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="84C-7a-WER">
<rect key="frame" x="20.999999999999986" y="98.333333333333343" width="238.66666666666663" height="60"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="50"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" adjustsImageWhenHighlighted="NO" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="FKY-5f-bN9">
<rect key="frame" x="347" y="111" width="35" height="35"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<rect key="contentStretch" x="0.0" y="0.0" width="0.0" height="0.0"/>
<constraints>
<constraint firstAttribute="width" constant="35" id="KYC-hC-fim" userLabel="width = 35"/>
<constraint firstAttribute="height" constant="35" id="NhC-Tm-u51" userLabel="height = 35"/>
</constraints>
<color key="tintColor" systemColor="linkColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" backgroundImage="create">
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="15"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="createBackup:" destination="BYZ-38-t0r" eventType="touchUpInside" id="HAA-of-GPp"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.33333333333333331" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="FKY-5f-bN9" secondAttribute="trailing" constant="20" id="Jdk-QQ-yzs"/>
<constraint firstAttribute="bottom" secondItem="84C-7a-WER" secondAttribute="bottom" constant="16" id="P3j-0T-pEU"/>
<constraint firstItem="84C-7a-WER" firstAttribute="leading" secondItem="YRz-XN-znu" secondAttribute="leading" constant="21" id="Xal-aC-rHb"/>
<constraint firstAttribute="bottom" secondItem="FKY-5f-bN9" secondAttribute="bottom" constant="20" id="wDN-Ue-6NJ"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="30"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<visualEffectView opaque="NO" alpha="0.75" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="3iZ-tO-enL">
<rect key="frame" x="20" y="241.33333333333334" width="164" height="413.33333333333326"/>
<rect key="frame" x="0.0" y="0.0" width="374" height="370"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" id="n8w-C8-2Xw">
<rect key="frame" x="0.0" y="0.0" width="164" height="413.33333333333326"/>
<rect key="frame" x="0.0" y="0.0" width="374" height="370"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" alpha="0.84999999999999998" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="bgimage" translatesAutoresizingMaskIntoConstraints="NO" id="Xdq-a9-Vkk">
<rect key="frame" x="0.0" y="0.0" width="164" height="414"/>
<rect key="frame" x="0.0" y="0.0" width="374" height="370"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="20"/>
@ -85,90 +41,26 @@
</imageView>
</subviews>
<constraints>
<constraint firstItem="Xdq-a9-Vkk" firstAttribute="centerX" secondItem="n8w-C8-2Xw" secondAttribute="centerX" id="JU7-Aa-9Q0"/>
<constraint firstItem="Xdq-a9-Vkk" firstAttribute="centerY" secondItem="n8w-C8-2Xw" secondAttribute="centerY" id="SKZ-jL-rWs"/>
<constraint firstItem="Xdq-a9-Vkk" firstAttribute="top" secondItem="n8w-C8-2Xw" secondAttribute="top" id="TrS-Cq-b0D"/>
<constraint firstItem="Xdq-a9-Vkk" firstAttribute="leading" secondItem="n8w-C8-2Xw" secondAttribute="leading" id="TvJ-YA-p96"/>
<constraint firstItem="Xdq-a9-Vkk" firstAttribute="centerX" secondItem="n8w-C8-2Xw" secondAttribute="centerX" id="CaH-71-yCY"/>
<constraint firstItem="Xdq-a9-Vkk" firstAttribute="leading" secondItem="n8w-C8-2Xw" secondAttribute="leading" id="EDx-Sw-tzJ"/>
<constraint firstItem="Xdq-a9-Vkk" firstAttribute="top" secondItem="n8w-C8-2Xw" secondAttribute="top" id="eaV-GU-BMA"/>
<constraint firstItem="Xdq-a9-Vkk" firstAttribute="centerY" secondItem="n8w-C8-2Xw" secondAttribute="centerY" id="tLm-FN-ej4"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="20"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<constraints>
<constraint firstAttribute="width" constant="164" id="deQ-s3-GTb"/>
</constraints>
<blurEffect style="light"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="20"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</visualEffectView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" adjustsImageWhenHighlighted="NO" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="j3D-XF-u37">
<rect key="frame" x="20" y="812" width="25" height="25"/>
<constraints>
<constraint firstAttribute="width" constant="25" id="LXF-kg-B1q"/>
<constraint firstAttribute="height" constant="25" id="zYE-fR-39z"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="25"/>
<state key="normal" backgroundImage="details"/>
<connections>
<action selector="helpMenu:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Cqa-me-9od"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" adjustsImageWhenHighlighted="NO" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="lNN-hV-Kcy">
<rect key="frame" x="169" y="682" width="75" height="75"/>
<color key="backgroundColor" white="1" alpha="0.25035761439999998" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="75" id="Rcd-d2-red" userLabel="width = 75"/>
<constraint firstAttribute="height" constant="75" id="d3j-Q4-1cW" userLabel="height = 75"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="31"/>
<color key="tintColor" red="0.22507366540000001" green="0.48274582620000001" blue="0.83905923370000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" backgroundImage="package"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="15"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="packageBackup:" destination="BYZ-38-t0r" eventType="touchUpInside" id="BGU-Dg-Yyu"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="fill" contentVerticalAlignment="fill" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="XMB-Cv-YLA">
<rect key="frame" x="49" y="682" width="75" height="75"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="75" id="2ju-cX-3np" userLabel="width = 75"/>
<constraint firstAttribute="height" constant="75" id="W19-ci-HBM" userLabel="height = 75"/>
</constraints>
<color key="tintColor" red="0.92126031090000005" green="0.47989189650000003" blue="0.67328914429999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" backgroundImage="restore">
<preferredSymbolConfiguration key="preferredSymbolConfiguration" scale="default"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="15"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="restoreBackup:" destination="BYZ-38-t0r" eventType="touchUpInside" id="JqV-B8-5zg"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="WN9-tU-bOp">
<rect key="frame" x="290" y="682" width="75" height="75"/>
<color key="backgroundColor" white="1" alpha="0.25035761439999998" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="75" id="SuA-zx-61M" userLabel="width = 75"/>
<constraint firstAttribute="height" constant="101" id="UPq-aB-R1H" userLabel="height = 75"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="31"/>
<color key="tintColor" red="0.73051530119999997" green="0.57675904040000003" blue="0.8395984769" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" backgroundImage="update"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="15"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="updateBackup:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Jz6-Fn-uAo"/>
</connections>
</button>
<pickerView contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="X4R-sr-2s9">
<rect key="frame" x="192" y="243.33333333333334" width="202" height="411.33333333333326"/>
<color key="backgroundColor" red="0.93906646969999996" green="0.57121473550000001" blue="0.4362351894" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<rect key="frame" x="0.0" y="0.0" width="374" height="370"/>
<color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
@ -180,56 +72,203 @@
<outlet property="delegate" destination="BYZ-38-t0r" id="O8T-KD-yad"/>
</connections>
</pickerView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Z44-tn-4Km">
<rect key="frame" x="344" y="787" width="50" height="50"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="width" constant="50" id="DD9-vp-1Li"/>
<constraint firstAttribute="height" constant="50" id="Yfh-qR-9H9"/>
<constraint firstItem="3iZ-tO-enL" firstAttribute="top" secondItem="Qmu-gf-Vin" secondAttribute="top" id="AVu-Xi-nlv"/>
<constraint firstItem="X4R-sr-2s9" firstAttribute="top" secondItem="3iZ-tO-enL" secondAttribute="top" id="Cid-h6-CZk"/>
<constraint firstItem="X4R-sr-2s9" firstAttribute="centerY" secondItem="Qmu-gf-Vin" secondAttribute="centerY" id="MxT-ZE-VaZ"/>
<constraint firstItem="3iZ-tO-enL" firstAttribute="leading" secondItem="X4R-sr-2s9" secondAttribute="leading" id="bxL-Dz-PRC"/>
<constraint firstItem="3iZ-tO-enL" firstAttribute="leading" secondItem="Qmu-gf-Vin" secondAttribute="leading" id="cOM-iK-rkn"/>
<constraint firstItem="3iZ-tO-enL" firstAttribute="centerX" secondItem="Qmu-gf-Vin" secondAttribute="centerX" id="fe6-bn-ASk"/>
<constraint firstItem="X4R-sr-2s9" firstAttribute="trailing" secondItem="3iZ-tO-enL" secondAttribute="trailing" id="hkR-kw-VGz"/>
<constraint firstItem="X4R-sr-2s9" firstAttribute="bottom" secondItem="3iZ-tO-enL" secondAttribute="bottom" id="iDm-zA-a8d"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" adjustsImageWhenHighlighted="NO" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="lNN-hV-Kcy">
<rect key="frame" x="20" y="657" width="183" height="75"/>
<color key="backgroundColor" red="0.22507366540000001" green="0.48274582620000001" blue="0.83905923370000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="75" id="j6R-1b-inL"/>
<constraint firstAttribute="width" constant="183" id="nrl-GW-uHl"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="31"/>
<color key="tintColor" red="0.22507366540000001" green="0.48274582620000001" blue="0.83905923370000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" title="Package">
<color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="20"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="packageBackup:" destination="BYZ-38-t0r" eventType="touchUpInside" id="BGU-Dg-Yyu"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="XMB-Cv-YLA">
<rect key="frame" x="211" y="657" width="183" height="75"/>
<color key="backgroundColor" red="0.92126031090000005" green="0.47989189650000003" blue="0.67328914429999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="31"/>
<color key="tintColor" red="0.92126031090000005" green="0.47989189650000003" blue="0.67328914429999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" title="Restore">
<preferredSymbolConfiguration key="preferredSymbolConfiguration" scale="default"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="20"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="restoreBackup:" destination="BYZ-38-t0r" eventType="touchUpInside" id="JqV-B8-5zg"/>
</connections>
</button>
<label opaque="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="FlashBack" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="84C-7a-WER">
<rect key="frame" x="87.666666666666671" y="44" width="238.66666666666663" height="60"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="50"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" adjustsImageWhenHighlighted="NO" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="j3D-XF-u37">
<rect key="frame" x="20" y="823" width="374" height="39"/>
<constraints>
<constraint firstAttribute="height" constant="39" id="Vyu-Ke-bTa"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="23"/>
<state key="normal" title="Click Here for More Information"/>
<connections>
<action selector="helpMenu:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Cqa-me-9od"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Z44-tn-4Km">
<rect key="frame" x="20" y="740" width="183" height="75"/>
<color key="backgroundColor" systemColor="systemRedColor" red="1" green="0.23137254900000001" blue="0.18823529410000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="75" id="8Ip-qI-O2V"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="31"/>
<color key="tintColor" systemColor="systemRedColor" red="1" green="0.23137254900000001" blue="0.18823529410000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" backgroundImage="delete"/>
<state key="normal" title="Delete">
<color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="15"/>
<integer key="value" value="20"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="deleteBackup:" destination="BYZ-38-t0r" eventType="touchUpInside" id="IGQ-c1-zGW"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="WN9-tU-bOp">
<rect key="frame" x="211" y="740" width="183" height="75"/>
<color key="backgroundColor" red="0.73051530119999997" green="0.57675904040000003" blue="0.8395984769" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="31"/>
<color key="tintColor" red="0.73051530119999997" green="0.57675904040000003" blue="0.8395984769" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" title="Update">
<color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="20"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="updateBackup:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Jz6-Fn-uAo"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" adjustsImageWhenHighlighted="NO" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="FKY-5f-bN9">
<rect key="frame" x="20" y="574" width="374" height="75"/>
<color key="backgroundColor" red="0.93906646969999996" green="0.57121473550000001" blue="0.4362351894" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<rect key="contentStretch" x="0.0" y="0.0" width="0.0" height="0.0"/>
<constraints>
<constraint firstAttribute="height" constant="75" id="vbd-9v-0JZ"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="31"/>
<color key="tintColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" title="Create New"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="20"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="createBackup:" destination="BYZ-38-t0r" eventType="touchUpInside" id="HAA-of-GPp"/>
</connections>
</button>
<stackView opaque="NO" contentMode="scaleToFill" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="X3c-44-HXm">
<rect key="frame" x="22" y="535" width="372" height="31"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Tweaks" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="c9d-9w-RiC">
<rect key="frame" x="0.0" y="0.0" width="57.333333333333336" height="31"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="tvy-pS-CSx">
<rect key="frame" x="67.333333333333329" y="0.0" width="51" height="31"/>
<connections>
<action selector="tweaksSwitch:" destination="BYZ-38-t0r" eventType="valueChanged" id="p7A-0N-hdt"/>
</connections>
</switch>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Icons" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wBw-HV-MgU">
<rect key="frame" x="126.33333333333334" y="0.0" width="41" height="31"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Irv-ED-Tmk">
<rect key="frame" x="177.33333333333334" y="0.0" width="51" height="31"/>
<connections>
<action selector="iconsSwitch:" destination="BYZ-38-t0r" eventType="valueChanged" id="V9G-tU-UFn"/>
</connections>
</switch>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Wallpaper" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jzj-MK-ow3">
<rect key="frame" x="236.33333333333329" y="0.0" width="76.666666666666657" height="31"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Mu0-Ol-PnE">
<rect key="frame" x="323" y="0.0" width="51" height="31"/>
<connections>
<action selector="wallpaperSwitch:" destination="BYZ-38-t0r" eventType="valueChanged" id="h1n-9k-c27"/>
</connections>
</switch>
</subviews>
</stackView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="lNN-hV-Kcy" firstAttribute="top" secondItem="WN9-tU-bOp" secondAttribute="top" id="1yf-iZ-Z8y"/>
<constraint firstItem="lNN-hV-Kcy" firstAttribute="centerX" secondItem="gXr-H3-y6A" secondAttribute="centerX" id="5yI-H4-Prz"/>
<constraint firstItem="lNN-hV-Kcy" firstAttribute="bottom" secondItem="WN9-tU-bOp" secondAttribute="bottom" id="6ZB-Bf-jyH"/>
<constraint firstItem="Z44-tn-4Km" firstAttribute="bottom" secondItem="j3D-XF-u37" secondAttribute="bottom" id="808-hO-3rP"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="bottom" secondItem="j3D-XF-u37" secondAttribute="bottom" constant="25" id="EuU-26-P4u"/>
<constraint firstItem="WN9-tU-bOp" firstAttribute="leading" secondItem="lNN-hV-Kcy" secondAttribute="trailing" constant="21.666666666666686" id="F3Z-99-YEf"/>
<constraint firstItem="XMB-Cv-YLA" firstAttribute="top" secondItem="3iZ-tO-enL" secondAttribute="bottom" constant="37.999999999999886" id="Hw7-cJ-f1y"/>
<constraint firstItem="gXr-H3-y6A" firstAttribute="top" secondItem="YRz-XN-znu" secondAttribute="bottom" constant="31" id="NLx-cb-Z0Y"/>
<constraint firstItem="3iZ-tO-enL" firstAttribute="centerY" secondItem="8bC-Xf-vdC" secondAttribute="centerY" id="QOS-5W-kiD"/>
<constraint firstItem="gXr-H3-y6A" firstAttribute="trailing" secondItem="8bC-Xf-vdC" secondAttribute="trailingMargin" id="R2H-5X-x8P"/>
<constraint firstItem="YRz-XN-znu" firstAttribute="top" secondItem="8bC-Xf-vdC" secondAttribute="topMargin" constant="-97" id="Scc-1v-kuH"/>
<constraint firstItem="gXr-H3-y6A" firstAttribute="leading" secondItem="3iZ-tO-enL" secondAttribute="leading" id="T5D-8H-hM2"/>
<constraint firstItem="X4R-sr-2s9" firstAttribute="leading" secondItem="3iZ-tO-enL" secondAttribute="trailing" constant="8" id="VRb-uM-jSc"/>
<constraint firstItem="XMB-Cv-YLA" firstAttribute="bottom" secondItem="lNN-hV-Kcy" secondAttribute="bottom" id="XgH-6s-wOW"/>
<constraint firstItem="WN9-tU-bOp" firstAttribute="baseline" secondItem="lNN-hV-Kcy" secondAttribute="baseline" id="XiT-po-OdT"/>
<constraint firstItem="lNN-hV-Kcy" firstAttribute="firstBaseline" secondItem="WN9-tU-bOp" secondAttribute="firstBaseline" id="XuP-8G-Btq"/>
<constraint firstItem="XMB-Cv-YLA" firstAttribute="top" secondItem="lNN-hV-Kcy" secondAttribute="top" id="b62-mP-Zpm"/>
<constraint firstItem="Z44-tn-4Km" firstAttribute="trailing" secondItem="X4R-sr-2s9" secondAttribute="trailing" id="bTp-1w-V59"/>
<constraint firstItem="X4R-sr-2s9" firstAttribute="top" secondItem="gXr-H3-y6A" secondAttribute="bottom" constant="8" id="cBr-K5-WBl"/>
<constraint firstItem="3iZ-tO-enL" firstAttribute="bottom" secondItem="X4R-sr-2s9" secondAttribute="bottom" id="cdA-le-7bt"/>
<constraint firstItem="gXr-H3-y6A" firstAttribute="trailing" secondItem="X4R-sr-2s9" secondAttribute="trailing" id="dVX-31-fqP"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="bottom" secondItem="lNN-hV-Kcy" secondAttribute="bottom" constant="94.333333333333371" id="da6-Cp-iCo"/>
<constraint firstItem="j3D-XF-u37" firstAttribute="leading" secondItem="3iZ-tO-enL" secondAttribute="leading" id="fam-fG-ISn"/>
<constraint firstItem="lNN-hV-Kcy" firstAttribute="leading" secondItem="XMB-Cv-YLA" secondAttribute="trailing" constant="20" id="ja6-Q7-zRM"/>
<constraint firstItem="3iZ-tO-enL" firstAttribute="top" secondItem="gXr-H3-y6A" secondAttribute="bottom" constant="6" id="kbG-2p-B9N"/>
<constraint firstItem="gXr-H3-y6A" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="nNY-OL-is3"/>
<constraint firstItem="YRz-XN-znu" firstAttribute="centerX" secondItem="gXr-H3-y6A" secondAttribute="centerX" id="v8g-3m-yZ1"/>
<constraint firstItem="YRz-XN-znu" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="yM9-sD-L7K"/>
<constraint firstItem="lNN-hV-Kcy" firstAttribute="top" secondItem="XMB-Cv-YLA" secondAttribute="top" id="21M-VJ-bAh"/>
<constraint firstItem="j3D-XF-u37" firstAttribute="top" secondItem="Z44-tn-4Km" secondAttribute="bottom" constant="8" id="30L-V8-A3p"/>
<constraint firstItem="Z44-tn-4Km" firstAttribute="baseline" secondItem="WN9-tU-bOp" secondAttribute="firstBaseline" id="8Dm-rm-oEZ"/>
<constraint firstItem="FKY-5f-bN9" firstAttribute="leading" secondItem="lNN-hV-Kcy" secondAttribute="leading" id="8wG-pw-HD8"/>
<constraint firstItem="FKY-5f-bN9" firstAttribute="top" secondItem="X3c-44-HXm" secondAttribute="bottom" constant="8" id="AyL-dZ-aV0"/>
<constraint firstItem="lNN-hV-Kcy" firstAttribute="baseline" secondItem="XMB-Cv-YLA" secondAttribute="firstBaseline" id="DRr-PK-Z2s"/>
<constraint firstItem="FKY-5f-bN9" firstAttribute="trailing" secondItem="XMB-Cv-YLA" secondAttribute="trailing" id="E2W-iC-dpk"/>
<constraint firstItem="XMB-Cv-YLA" firstAttribute="trailing" secondItem="WN9-tU-bOp" secondAttribute="trailing" id="EKg-za-bBr"/>
<constraint firstItem="X3c-44-HXm" firstAttribute="top" secondItem="Qmu-gf-Vin" secondAttribute="bottom" constant="8" id="FgC-PB-6BL"/>
<constraint firstItem="Qmu-gf-Vin" firstAttribute="top" secondItem="gXr-H3-y6A" secondAttribute="bottom" constant="9" id="L9j-Hq-TQe"/>
<constraint firstItem="Qmu-gf-Vin" firstAttribute="trailing" secondItem="X3c-44-HXm" secondAttribute="trailing" id="M5f-3c-EYa"/>
<constraint firstItem="84C-7a-WER" firstAttribute="centerX" secondItem="gXr-H3-y6A" secondAttribute="centerX" id="Udp-T7-q1k"/>
<constraint firstItem="Qmu-gf-Vin" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="XbM-PO-XDL"/>
<constraint firstItem="Z44-tn-4Km" firstAttribute="leading" secondItem="j3D-XF-u37" secondAttribute="leading" id="ZZS-1d-Hlf"/>
<constraint firstItem="84C-7a-WER" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" id="d84-xZ-H0y"/>
<constraint firstItem="lNN-hV-Kcy" firstAttribute="leading" secondItem="Z44-tn-4Km" secondAttribute="leading" id="dgp-XQ-E4x"/>
<constraint firstItem="Z44-tn-4Km" firstAttribute="top" secondItem="WN9-tU-bOp" secondAttribute="top" id="f8F-1P-aLG"/>
<constraint firstItem="Qmu-gf-Vin" firstAttribute="leading" secondItem="FKY-5f-bN9" secondAttribute="leading" id="fUL-0D-od6"/>
<constraint firstItem="Z44-tn-4Km" firstAttribute="top" secondItem="lNN-hV-Kcy" secondAttribute="bottom" constant="8" id="gJN-fQ-4v6"/>
<constraint firstItem="gXr-H3-y6A" firstAttribute="top" secondItem="84C-7a-WER" secondAttribute="bottom" constant="8" id="gen-C4-2J6"/>
<constraint firstItem="Qmu-gf-Vin" firstAttribute="trailing" secondItem="8bC-Xf-vdC" secondAttribute="trailingMargin" id="iwA-66-wCX"/>
<constraint firstItem="j3D-XF-u37" firstAttribute="bottom" secondItem="6Tk-OE-BBY" secondAttribute="bottom" id="kJJ-fg-AhV"/>
<constraint firstItem="XMB-Cv-YLA" firstAttribute="leading" secondItem="WN9-tU-bOp" secondAttribute="leading" id="ltN-aR-YJN"/>
<constraint firstItem="XMB-Cv-YLA" firstAttribute="leading" secondItem="lNN-hV-Kcy" secondAttribute="trailing" constant="8" id="oi5-py-nqI"/>
<constraint firstItem="gXr-H3-y6A" firstAttribute="centerX" secondItem="Qmu-gf-Vin" secondAttribute="centerX" id="qZN-M0-TwO"/>
<constraint firstItem="lNN-hV-Kcy" firstAttribute="trailing" secondItem="Z44-tn-4Km" secondAttribute="trailing" id="rbL-mj-0U8"/>
<constraint firstItem="WN9-tU-bOp" firstAttribute="trailing" secondItem="j3D-XF-u37" secondAttribute="trailing" id="uLO-sD-Wdr"/>
<constraint firstItem="lNN-hV-Kcy" firstAttribute="top" secondItem="FKY-5f-bN9" secondAttribute="bottom" constant="8" id="v5J-Uf-y1V"/>
<constraint firstItem="X3c-44-HXm" firstAttribute="trailing" secondItem="FKY-5f-bN9" secondAttribute="trailing" id="zCo-R1-hk1"/>
</constraints>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
@ -246,11 +285,5 @@
</scenes>
<resources>
<image name="bgimage" width="480" height="986.66668701171875"/>
<image name="create" width="33.333332061767578" height="33.666667938232422"/>
<image name="delete" width="33.333332061767578" height="33.666667938232422"/>
<image name="details" width="33.333332061767578" height="33.666667938232422"/>
<image name="package" width="33.333332061767578" height="33.666667938232422"/>
<image name="restore" width="33.333332061767578" height="33.666667938232422"/>
<image name="update" width="33.333332061767578" height="33.666667938232422"/>
</resources>
</document>

View file

@ -17,6 +17,12 @@
@end
BOOL trial;
BOOL tweaksEnabled = YES;
BOOL iconsEnabled = YES;
BOOL wallpaperEnabled = YES;
NSString *stringTweaksEnabled;
NSString *stringIconsEnabled;
NSString *stringWallpaperEnabled;
NSArray *_backupFolderArray;
NSString *_backupDirectory;
NSMutableString *selectedBackupImageURL;
@ -26,29 +32,34 @@ NSString *backupNameSelected;
@implementation ViewController
- (IBAction)createBackup:(id)sender {
- (IBAction)tweaksSwitch:(id)sender {
if(([_backupFolderArray count] >= 1) && (trial == YES)){
UIAlertController * noMoreBackupsAlert = [UIAlertController
alertControllerWithTitle:@"Maximum Backups Reached"
message:@"The free trial of FlashBack only allows one saved setup. Purchase the full version on PackIX for $1.50 to make more!"
preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction* ok = [UIAlertAction
actionWithTitle:@"ok"
style:UIAlertActionStyleDefault
handler:^(UIAlertAction * action)
{
[noMoreBackupsAlert dismissViewControllerAnimated:YES completion:nil];
}];
[noMoreBackupsAlert addAction:ok];
[self presentViewController:noMoreBackupsAlert animated:YES completion:nil];
BOOL tweaksEnabled = [sender isOn];
NSString *stringTweaksEnabled = tweaksEnabled == YES ? @"YES" : @"NO";
NSLog(@"%@", stringTweaksEnabled);
}
else{
- (IBAction)iconsSwitch:(id)sender {
BOOL iconsEnabled = [sender isOn];
NSString *stringIconsEnabled = iconsEnabled == YES ? @"YES" : @"NO";
NSLog(@"%@", stringIconsEnabled);
}
- (IBAction)wallpaperSwitch:(id)sender {
BOOL wallpaperEnabled = [sender isOn];
NSString *stringWallpaperEnabled = wallpaperEnabled == YES ? @"YES" : @"NO";
NSLog(@"%@", stringWallpaperEnabled);
//NSLog(@"wallpaperEnabled:" );
}
- (IBAction)createBackup:(id)sender {
UIAlertController *createBackupAlert = [UIAlertController alertControllerWithTitle:@"Enter the Backup Name" message:@"Please do not use special symbols. Use only letters and numbers, no spaces." preferredStyle:UIAlertControllerStyleAlert];
[createBackupAlert addTextFieldWithConfigurationHandler:^(UITextField * _Nonnull textField) {
@ -69,7 +80,7 @@ NSString *backupNameSelected;
NSTask *createTask = [[NSTask alloc] init];
[createTask setLaunchPath:@"/bin/bash"];
[createTask setArguments:@[ @"FBCreate", newBackupName]];
[createTask setArguments:@[ @"FBCreate", newBackupName, stringTweaksEnabled, stringIconsEnabled, stringWallpaperEnabled]];
[createTask launch];
[createTask waitUntilExit];
@ -111,7 +122,6 @@ NSString *backupNameSelected;
[createBackupAlert addAction:cancelAction];
[self presentViewController:createBackupAlert animated:YES completion:nil];
}
}
- (IBAction)restoreBackup:(id)sender {
@ -153,7 +163,7 @@ NSString *backupNameSelected;
NSTask *restoreTask = [[NSTask alloc] init];
[restoreTask setLaunchPath:@"/bin/bash"];
[restoreTask setArguments:@[ @"FBRestore", backupNameSelected]];
[restoreTask setArguments:@[ @"FBRestore", backupNameSelected, stringTweaksEnabled, stringIconsEnabled, stringWallpaperEnabled]];
[restoreTask launch];
UIAlertController * finishedRestoreAlert= [UIAlertController
@ -228,7 +238,7 @@ NSString *backupNameSelected;
NSTask *createTask = [[NSTask alloc] init];
[createTask setLaunchPath:@"/bin/bash"];
[createTask setArguments:@[ @"FBCreate", backupNameSelected]];
[createTask setArguments:@[ @"FBCreate", backupNameSelected, stringTweaksEnabled, stringIconsEnabled, stringWallpaperEnabled]];
[createTask launch];
[createTask waitUntilExit];
@ -536,7 +546,7 @@ NSString *backupNameSelected;
UIAlertController * failedDRMAlert= [UIAlertController
alertControllerWithTitle:@"FlashBack appears to be pirated :("
message:@"Please support small devs and purchase software. If you're unable to, please contact me, I'm happy to work things out! If you want to test it out, check out the trial version!"
message:@"For your own safety, download FlashBack from the official source! If you're seeing this, then it means that whoever is distributing this copy is either sharing a ripped version that is potentially dangerous, or they have forgotten to remove this warning for yours, and their own protection."
preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction* failedDRMOk = [UIAlertAction
@ -545,7 +555,7 @@ NSString *backupNameSelected;
handler:^(UIAlertAction * action)
{
[failedDRMAlert dismissViewControllerAnimated:YES completion:nil];
exit(0);
//exit(0);
}];
UIAlertController * trialNoticeAlert= [UIAlertController