home commit. added activity indicator
This commit is contained in:
@@ -77,7 +77,19 @@
|
||||
<CommandLineArguments>
|
||||
<CommandLineArgument
|
||||
argument = "-FIRAnalyticsDebugEnabled"
|
||||
isEnabled = "YES">
|
||||
isEnabled = "NO">
|
||||
</CommandLineArgument>
|
||||
<CommandLineArgument
|
||||
argument = "-FIRDebugEnabled"
|
||||
isEnabled = "NO">
|
||||
</CommandLineArgument>
|
||||
<CommandLineArgument
|
||||
argument = "-FIRDebugDisabled"
|
||||
isEnabled = "NO">
|
||||
</CommandLineArgument>
|
||||
<CommandLineArgument
|
||||
argument = "-FIRAnalyticsDebugDisabled"
|
||||
isEnabled = "NO">
|
||||
</CommandLineArgument>
|
||||
</CommandLineArguments>
|
||||
<EnvironmentVariables>
|
||||
|
||||
@@ -123,16 +123,16 @@
|
||||
<rect key="frame" x="0.0" y="44" width="414" height="758"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="20" translatesAutoresizingMaskIntoConstraints="NO" id="Fyh-aj-dYn">
|
||||
<rect key="frame" x="0.0" y="0.0" width="414" height="878.66666666666663"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="414" height="883.66666666666663"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Add New Address" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="S8i-lX-bse" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="10" y="5" width="394" height="24"/>
|
||||
<rect key="frame" x="10" y="10" width="394" height="24"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="20"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="v5u-ae-Jzp">
|
||||
<rect key="frame" x="10" y="48.999999999999993" width="394" height="79.333333333333314"/>
|
||||
<rect key="frame" x="10" y="53.999999999999993" width="394" height="79.333333333333314"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Address Name (Firstname & Lastname)" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZOH-FN-Yqz" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="5" y="0.0" width="384" height="19.333333333333332"/>
|
||||
@@ -140,7 +140,7 @@
|
||||
<color key="textColor" red="0.035294117649999998" green="0.0" blue="0.36470588240000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter address name" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="M6e-0t-FoD" customClass="TextFieldShadow" customModule="WOKA" customModuleProvider="target">
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter address name" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="M6e-0t-FoD" customClass="TextFieldShadow" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="5" y="29.333333333333329" width="384" height="50"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<color key="tintColor" name="TextDarkBlue"/>
|
||||
@@ -164,7 +164,7 @@
|
||||
<edgeInsets key="layoutMargins" top="0.0" left="5" bottom="0.0" right="5"/>
|
||||
</stackView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="14w-xR-r1s">
|
||||
<rect key="frame" x="10" y="148.33333333333334" width="394" height="79.333333333333343"/>
|
||||
<rect key="frame" x="10" y="153.33333333333334" width="394" height="79.333333333333343"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Address Line 1" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4qC-Pk-qkH" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="5" y="0.0" width="384" height="19.333333333333332"/>
|
||||
@@ -172,7 +172,7 @@
|
||||
<color key="textColor" red="0.035294117649999998" green="0.0" blue="0.36470588240000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter address line 1" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="4gp-xB-FLw" customClass="TextFieldShadow" customModule="WOKA" customModuleProvider="target">
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter address line 1" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="4gp-xB-FLw" customClass="TextFieldShadow" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="5" y="29.333333333333314" width="384" height="50"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<color key="tintColor" name="TextDarkBlue"/>
|
||||
@@ -196,7 +196,7 @@
|
||||
<edgeInsets key="layoutMargins" top="0.0" left="5" bottom="0.0" right="5"/>
|
||||
</stackView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="ipZ-MN-bfu">
|
||||
<rect key="frame" x="10" y="247.66666666666671" width="394" height="79.333333333333343"/>
|
||||
<rect key="frame" x="10" y="252.66666666666671" width="394" height="79.333333333333343"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Address Line 2" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zm9-HI-4ph" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="5" y="0.0" width="384" height="19.333333333333332"/>
|
||||
@@ -204,7 +204,7 @@
|
||||
<color key="textColor" red="0.035294117649999998" green="0.0" blue="0.36470588240000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter address line 1" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Le6-W7-6jI" customClass="TextFieldShadow" customModule="WOKA" customModuleProvider="target">
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter address line 1" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Le6-W7-6jI" customClass="TextFieldShadow" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="5" y="29.333333333333314" width="384" height="50"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<color key="tintColor" name="TextDarkBlue"/>
|
||||
@@ -228,7 +228,7 @@
|
||||
<edgeInsets key="layoutMargins" top="0.0" left="5" bottom="0.0" right="5"/>
|
||||
</stackView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="rcB-OF-B3k">
|
||||
<rect key="frame" x="10" y="347" width="394" height="79.333333333333314"/>
|
||||
<rect key="frame" x="10" y="352" width="394" height="79.333333333333314"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="City" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Uq9-GD-cPW" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="5" y="0.0" width="384" height="19.333333333333332"/>
|
||||
@@ -236,7 +236,7 @@
|
||||
<color key="textColor" red="0.035294117649999998" green="0.0" blue="0.36470588240000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter city" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="BEd-ik-j0X" customClass="TextFieldShadow" customModule="WOKA" customModuleProvider="target">
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter city" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="BEd-ik-j0X" customClass="TextFieldShadow" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="5" y="29.333333333333314" width="384" height="50"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<color key="tintColor" name="TextDarkBlue"/>
|
||||
@@ -245,7 +245,7 @@
|
||||
</constraints>
|
||||
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Regular" family="Exo 2" pointSize="16"/>
|
||||
<textInputTraits key="textInputTraits" autocorrectionType="no" enablesReturnKeyAutomatically="YES" textContentType="address-level2"/>
|
||||
<textInputTraits key="textInputTraits" autocapitalizationType="words" autocorrectionType="no" enablesReturnKeyAutomatically="YES" textContentType="address-level2"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="paddingLeftCustom">
|
||||
<real key="value" value="25"/>
|
||||
@@ -260,7 +260,7 @@
|
||||
<edgeInsets key="layoutMargins" top="0.0" left="5" bottom="0.0" right="5"/>
|
||||
</stackView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="c85-0g-vGf">
|
||||
<rect key="frame" x="10" y="446.33333333333331" width="394" height="79.333333333333314"/>
|
||||
<rect key="frame" x="10" y="451.33333333333331" width="394" height="79.333333333333314"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="State" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9DD-Ab-AS9" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="5" y="0.0" width="384" height="19.333333333333332"/>
|
||||
@@ -268,7 +268,7 @@
|
||||
<color key="textColor" red="0.035294117649999998" green="0.0" blue="0.36470588240000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter state" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="SOb-Uq-xld" customClass="TextFieldShadow" customModule="WOKA" customModuleProvider="target">
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter state" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="SOb-Uq-xld" customClass="TextFieldShadow" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="5" y="29.333333333333314" width="384" height="50"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<color key="tintColor" name="TextDarkBlue"/>
|
||||
@@ -277,7 +277,7 @@
|
||||
</constraints>
|
||||
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Regular" family="Exo 2" pointSize="16"/>
|
||||
<textInputTraits key="textInputTraits" autocorrectionType="no" enablesReturnKeyAutomatically="YES" textContentType="address-level1"/>
|
||||
<textInputTraits key="textInputTraits" autocapitalizationType="words" autocorrectionType="no" enablesReturnKeyAutomatically="YES" textContentType="address-level1"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="paddingLeftCustom">
|
||||
<real key="value" value="25"/>
|
||||
@@ -292,7 +292,7 @@
|
||||
<edgeInsets key="layoutMargins" top="0.0" left="5" bottom="0.0" right="5"/>
|
||||
</stackView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="ei6-kZ-2Pa">
|
||||
<rect key="frame" x="10" y="545.66666666666663" width="394" height="79.333333333333371"/>
|
||||
<rect key="frame" x="10" y="550.66666666666663" width="394" height="79.333333333333371"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Pincode" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ej4-NQ-wVN" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="5" y="0.0" width="384" height="19.333333333333332"/>
|
||||
@@ -300,7 +300,7 @@
|
||||
<color key="textColor" red="0.035294117649999998" green="0.0" blue="0.36470588240000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="248" enabled="NO" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter coupon code" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="BqV-8B-1vE" customClass="TextFieldShadow" customModule="WOKA" customModuleProvider="target">
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="248" enabled="NO" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter coupon code" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="BqV-8B-1vE" customClass="TextFieldShadow" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="5" y="29.333333333333371" width="384" height="50"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<color key="tintColor" name="TextDarkBlue"/>
|
||||
@@ -324,7 +324,7 @@
|
||||
<edgeInsets key="layoutMargins" top="0.0" left="5" bottom="0.0" right="5"/>
|
||||
</stackView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="Mzj-PS-LkR">
|
||||
<rect key="frame" x="10" y="645" width="394" height="79.333333333333371"/>
|
||||
<rect key="frame" x="10" y="650" width="394" height="79.333333333333371"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Country" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="tyL-9S-yyo" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="5" y="0.0" width="384" height="19.333333333333332"/>
|
||||
@@ -332,7 +332,7 @@
|
||||
<color key="textColor" red="0.035294117649999998" green="0.0" blue="0.36470588240000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter country" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="lbG-6e-Siu" customClass="TextFieldShadow" customModule="WOKA" customModuleProvider="target">
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter country" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="lbG-6e-Siu" customClass="TextFieldShadow" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="5" y="29.333333333333371" width="384" height="50"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<color key="tintColor" name="TextDarkBlue"/>
|
||||
@@ -356,7 +356,7 @@
|
||||
<edgeInsets key="layoutMargins" top="0.0" left="5" bottom="0.0" right="5"/>
|
||||
</stackView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="dHl-UE-mSu">
|
||||
<rect key="frame" x="10" y="744.33333333333337" width="394" height="79.333333333333371"/>
|
||||
<rect key="frame" x="10" y="749.33333333333337" width="394" height="79.333333333333371"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Phone Number" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QfX-WL-6A3" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="5" y="0.0" width="384" height="19.333333333333332"/>
|
||||
@@ -364,7 +364,7 @@
|
||||
<color key="textColor" red="0.035294117649999998" green="0.0" blue="0.36470588240000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter phone number" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Kmc-Zf-kNp" customClass="TextFieldShadow" customModule="WOKA" customModuleProvider="target">
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Enter phone number" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Kmc-Zf-kNp" customClass="TextFieldShadow" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="5" y="29.333333333333258" width="384" height="50"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<color key="tintColor" name="TextDarkBlue"/>
|
||||
@@ -388,14 +388,14 @@
|
||||
<edgeInsets key="layoutMargins" top="0.0" left="5" bottom="0.0" right="5"/>
|
||||
</stackView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="JSs-5V-3H5">
|
||||
<rect key="frame" x="10" y="843.66666666666663" width="394" height="30"/>
|
||||
<rect key="frame" x="10" y="848.66666666666663" width="394" height="30"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="30" id="f6z-cu-XpL"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<edgeInsets key="layoutMargins" top="5" left="10" bottom="5" right="10"/>
|
||||
<edgeInsets key="layoutMargins" top="10" left="10" bottom="5" right="10"/>
|
||||
</stackView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
@@ -607,31 +607,31 @@
|
||||
</scenes>
|
||||
<designables>
|
||||
<designable name="4gp-xB-FLw">
|
||||
<size key="intrinsicContentSize" width="191" height="21"/>
|
||||
<size key="intrinsicContentSize" width="141" height="21"/>
|
||||
</designable>
|
||||
<designable name="8JG-SF-ofW">
|
||||
<size key="intrinsicContentSize" width="150" height="21"/>
|
||||
<size key="intrinsicContentSize" width="100" height="21"/>
|
||||
</designable>
|
||||
<designable name="BEd-ik-j0X">
|
||||
<size key="intrinsicContentSize" width="119" height="21"/>
|
||||
<size key="intrinsicContentSize" width="69" height="21"/>
|
||||
</designable>
|
||||
<designable name="BqV-8B-1vE">
|
||||
<size key="intrinsicContentSize" width="184.33333333333334" height="21"/>
|
||||
<size key="intrinsicContentSize" width="134.33333333333334" height="21"/>
|
||||
</designable>
|
||||
<designable name="Kmc-Zf-kNp">
|
||||
<size key="intrinsicContentSize" width="198.33333333333334" height="21"/>
|
||||
<size key="intrinsicContentSize" width="148.33333333333334" height="21"/>
|
||||
</designable>
|
||||
<designable name="Le6-W7-6jI">
|
||||
<size key="intrinsicContentSize" width="191" height="21"/>
|
||||
<size key="intrinsicContentSize" width="141" height="21"/>
|
||||
</designable>
|
||||
<designable name="M6e-0t-FoD">
|
||||
<size key="intrinsicContentSize" width="195.33333333333334" height="21"/>
|
||||
<size key="intrinsicContentSize" width="145.33333333333334" height="21"/>
|
||||
</designable>
|
||||
<designable name="SOb-Uq-xld">
|
||||
<size key="intrinsicContentSize" width="130.33333333333334" height="21"/>
|
||||
<size key="intrinsicContentSize" width="80.333333333333329" height="21"/>
|
||||
</designable>
|
||||
<designable name="lbG-6e-Siu">
|
||||
<size key="intrinsicContentSize" width="149" height="21"/>
|
||||
<size key="intrinsicContentSize" width="99" height="21"/>
|
||||
</designable>
|
||||
</designables>
|
||||
<resources>
|
||||
|
||||
@@ -82,16 +82,32 @@ extension AddressListVC : TableViewSRC{
|
||||
}
|
||||
|
||||
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
||||
// Resetting the Radio clicks
|
||||
for index in CartDataCache.addressData.indices {
|
||||
CartDataCache.addressData[index].isDefault = false
|
||||
}
|
||||
|
||||
//
|
||||
if CartDataCache.addressData[indexPath.row].eddDate == nil || CartDataCache.addressData[indexPath.row].eddDate == ""{
|
||||
if let pincode = CartDataCache.addressData[indexPath.row].pincode, let id = CartDataCache.addressData[indexPath.row].id{
|
||||
vm.checkEstimatedDeliveryData(pinCode: pincode, id: id)
|
||||
// check if array has same pincode and edd is there
|
||||
if let alreadyPincodePresent = CartDataCache.addressData.firstIndex(where: {$0.pincode == pincode && $0.eddDate != nil}){
|
||||
CartDataCache.addressData[indexPath.row].eddDate = CartDataCache.addressData[alreadyPincodePresent].eddDate
|
||||
}else{
|
||||
// else if not present fetch it again
|
||||
CartDataCache.addressData[indexPath.row].isAnimating = true
|
||||
vm.checkEstimatedDeliveryData(pinCode: pincode, id: id)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
CartDataCache.addressData[indexPath.row].isDefault = true
|
||||
tableView.reloadData()
|
||||
tableView.reloadData(with: .fade)
|
||||
}
|
||||
}
|
||||
|
||||
extension UITableView {
|
||||
func reloadData(with animation: UITableView.RowAnimation) {
|
||||
reloadSections(IndexSet(integersIn: 0..<numberOfSections), with: animation)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ class VerifyAddressPincodeVC: UIViewController {
|
||||
}
|
||||
|
||||
func checkEstimatedDeliveryData(pinCode : String){
|
||||
Utilities.startProgressHUD()
|
||||
Utilities.startProgressHUD(msg: "Checking Pincode..")
|
||||
let headers : HTTPHeaders = ["access-token" : AuthFunc.shareInstance.getAccessToken()]
|
||||
let params : Parameters = ["pincode" : pinCode]
|
||||
NetworkManager.shareInstance.apiRequest(url: APIEndPoints.Address.pincode_serviceability_check_edd, method: .post, parameters: params,headers: headers) { [weak self](result : Result<BaseResponseModel<CheckEddDM>, NetworkManager.APIError>) in
|
||||
|
||||
@@ -14,6 +14,7 @@ struct AddressListDM: Codable {
|
||||
let state, pincode, country, phoneNo: String?
|
||||
let email: String?
|
||||
var isDefault : Bool? = false
|
||||
var isAnimating : Bool? = false
|
||||
var eddDate : String? = nil
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
|
||||
@@ -14,6 +14,7 @@ class AddressCell: UITableViewCell {
|
||||
@IBOutlet weak var phoneNo: LocalisedElementsLabel!
|
||||
@IBOutlet weak var expecteDelivery: LocalisedElementsLabel!
|
||||
@IBOutlet weak var radioImage: UIImageView!
|
||||
@IBOutlet weak var activityIndicator: UIActivityIndicatorView!
|
||||
|
||||
override func awakeFromNib() {
|
||||
super.awakeFromNib()
|
||||
@@ -39,11 +40,19 @@ class AddressCell: UITableViewCell {
|
||||
self.radioImage.image = UIImage(named: "RadioOn")
|
||||
self.expecteDelivery.text = ""
|
||||
if let eddDate = data.eddDate{
|
||||
self.expecteDelivery.text = "Expected Delivery by" + "\n" + (data.eddDate ?? "NA")
|
||||
self.expecteDelivery.text = "Expected Delivery by" + "\n" + eddDate
|
||||
}
|
||||
}else{
|
||||
self.radioImage.image = UIImage(named: "RadioOff")
|
||||
self.expecteDelivery.text = ""
|
||||
}
|
||||
|
||||
if let isAnimating = data.isAnimating{
|
||||
if isAnimating{
|
||||
activityIndicator.startAnimating()
|
||||
}else{
|
||||
activityIndicator.stopAnimating()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,33 +46,36 @@
|
||||
<constraint firstAttribute="width" constant="25" id="t29-uI-HVf"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="gzm-Dp-PdR">
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="top" translatesAutoresizingMaskIntoConstraints="NO" id="gzm-Dp-PdR">
|
||||
<rect key="frame" x="35" y="0.0" width="397" height="159"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Mixed title" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="n7d-QN-AjF" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="397" height="18"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="76.666666666666671" height="18"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="15"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Mixed title" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NQt-QJ-tBm" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="18" width="397" height="18"/>
|
||||
<rect key="frame" x="0.0" y="18" width="76.666666666666671" height="18"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="15"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Mixed title" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="b3c-3t-x7Z" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="36" width="397" height="18"/>
|
||||
<rect key="frame" x="0.0" y="36" width="76.666666666666671" height="18"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="15"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" text="Mixed title" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1Eb-Np-qtk" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="54" width="397" height="105"/>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" text="" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1Eb-Np-qtk" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="54" width="0.0" height="85"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="15"/>
|
||||
<color key="textColor" systemColor="systemRedColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<activityIndicatorView hidden="YES" opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" hidesWhenStopped="YES" style="medium" translatesAutoresizingMaskIntoConstraints="NO" id="SuF-Ce-9TI">
|
||||
<rect key="frame" x="0.0" y="139" width="20" height="20"/>
|
||||
</activityIndicatorView>
|
||||
</subviews>
|
||||
</stackView>
|
||||
</subviews>
|
||||
@@ -87,6 +90,7 @@
|
||||
</tableViewCellContentView>
|
||||
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
|
||||
<connections>
|
||||
<outlet property="activityIndicator" destination="SuF-Ce-9TI" id="rT0-Qs-YM2"/>
|
||||
<outlet property="addressLine" destination="NQt-QJ-tBm" id="ce4-d7-yBp"/>
|
||||
<outlet property="addressName" destination="n7d-QN-AjF" id="Jzv-zj-Crm"/>
|
||||
<outlet property="expecteDelivery" destination="1Eb-Np-qtk" id="1aj-QN-JIe"/>
|
||||
|
||||
@@ -69,6 +69,7 @@ class AddressListVM{
|
||||
CartDataCache.addressData = data
|
||||
if CartDataCache.addressData.count != 0{
|
||||
CartDataCache.addressData[0].isDefault = true
|
||||
CartDataCache.addressData[0].isAnimating = true
|
||||
}
|
||||
self.vc.tableView.reloadData()
|
||||
if let pincode = CartDataCache.addressData.first?.pincode , let id = CartDataCache.addressData.first?.id{
|
||||
@@ -114,6 +115,7 @@ class AddressListVM{
|
||||
guard let data = data.data?.result else{return}
|
||||
if let index = CartDataCache.addressData.firstIndex(where: {$0.id == id}){
|
||||
CartDataCache.addressData[index].eddDate = data.edd
|
||||
CartDataCache.addressData[index].isAnimating = false
|
||||
self.vc.tableView.reloadData()
|
||||
}
|
||||
default:
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "Pause.png",
|
||||
"filename" : "pause.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "Pause@2x.png",
|
||||
"filename" : "pause@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "Pause@3x.png",
|
||||
"filename" : "pause@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ class ExploreWokaVC: UIViewController {
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
drawBackgroundBlur()
|
||||
// Do any additional setup after loading the view.
|
||||
|
||||
}
|
||||
|
||||
override func viewDidLayoutSubviews() {
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" translatesAutoresizingMaskIntoConstraints="NO" id="iqc-o5-ovk">
|
||||
<rect key="frame" x="82" y="59" width="348" height="839.00000000000023"/>
|
||||
<rect key="frame" x="82" y="59" width="348" height="839"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="30" translatesAutoresizingMaskIntoConstraints="NO" id="t37-ec-QfF">
|
||||
<rect key="frame" x="0.0" y="20" width="348" height="1073.6666666666667"/>
|
||||
@@ -586,13 +586,6 @@
|
||||
<rect key="frame" x="0.0" y="0.0" width="430" height="932"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</view>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0ic-QF-hpl">
|
||||
<rect key="frame" x="186" y="437" width="42" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<nil key="textColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="DNc-fQ-fy8">
|
||||
<rect key="frame" x="105" y="385.66666666666674" width="220" height="440"/>
|
||||
<subviews>
|
||||
|
||||
Reference in New Issue
Block a user