- Completed the blogs detail screen, also handled the language change. - added a nsnotification to handle the sidebar only on home an my list - Added api for like , unlike , fav remove, with data models. - handled the like unlike realtime, without the extra network call. - added realtime language change will update the fav cells.
152 lines
14 KiB
XML
152 lines
14 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
|
<device id="retina6_12" orientation="portrait" appearance="light"/>
|
|
<dependencies>
|
|
<deployment identifier="iOS"/>
|
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
|
|
<capability name="Named colors" minToolsVersion="9.0"/>
|
|
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
|
<capability name="System colors in document resources" minToolsVersion="11.0"/>
|
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
|
</dependencies>
|
|
<customFonts key="customFonts">
|
|
<array key="Exo2-Bold.ttf">
|
|
<string>Exo2-Bold</string>
|
|
</array>
|
|
</customFonts>
|
|
<objects>
|
|
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
|
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
|
<collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="FavouriteCell" customModule="WOKA" customModuleProvider="target">
|
|
<rect key="frame" x="0.0" y="0.0" width="484" height="299"/>
|
|
<autoresizingMask key="autoresizingMask"/>
|
|
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
|
|
<rect key="frame" x="0.0" y="0.0" width="484" height="299"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
|
<subviews>
|
|
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Jur-z4-Lbx">
|
|
<rect key="frame" x="0.0" y="0.0" width="484" height="299"/>
|
|
<subviews>
|
|
<stackView opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" axis="vertical" spacing="3" translatesAutoresizingMaskIntoConstraints="NO" id="P6H-iL-C1j">
|
|
<rect key="frame" x="10" y="10" width="464" height="279"/>
|
|
<subviews>
|
|
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Yqb-Mj-Uba">
|
|
<rect key="frame" x="10" y="59" width="444" height="148"/>
|
|
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
|
<userDefinedRuntimeAttributes>
|
|
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
|
<integer key="value" value="5"/>
|
|
</userDefinedRuntimeAttribute>
|
|
</userDefinedRuntimeAttributes>
|
|
</imageView>
|
|
<stackView opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" distribution="equalSpacing" alignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="5Fg-kv-VfG">
|
|
<rect key="frame" x="10" y="210" width="444" height="40"/>
|
|
<subviews>
|
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oRP-Fz-UDh">
|
|
<rect key="frame" x="0.0" y="12.333333333333343" width="34" height="15.666666666666664"/>
|
|
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="13"/>
|
|
<nil key="textColor"/>
|
|
<nil key="highlightedColor"/>
|
|
</label>
|
|
<stackView opaque="NO" contentMode="scaleToFill" alignment="bottom" spacing="7" translatesAutoresizingMaskIntoConstraints="NO" id="HGJ-7n-Ypy">
|
|
<rect key="frame" x="312.33333333333331" y="0.0" width="131.66666666666669" height="40"/>
|
|
<subviews>
|
|
<stackView opaque="NO" contentMode="scaleToFill" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="8wE-gW-chr">
|
|
<rect key="frame" x="0.0" y="0.0" width="131.66666666666666" height="40"/>
|
|
<subviews>
|
|
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hAN-DL-3jn">
|
|
<rect key="frame" x="0.0" y="0.0" width="40" height="40"/>
|
|
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
|
|
<constraints>
|
|
<constraint firstAttribute="width" secondItem="hAN-DL-3jn" secondAttribute="height" multiplier="1:1" id="wBd-5X-hLN"/>
|
|
</constraints>
|
|
</view>
|
|
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="oMw-mq-dfy">
|
|
<rect key="frame" x="42" y="0.0" width="40" height="40"/>
|
|
<constraints>
|
|
<constraint firstAttribute="width" secondItem="oMw-mq-dfy" secondAttribute="height" multiplier="1:1" id="NJb-wA-wkp"/>
|
|
</constraints>
|
|
<color key="tintColor" name="TextDarkBlue"/>
|
|
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
|
<state key="normal" image="hand.thumbsup.fill" catalog="system"/>
|
|
<connections>
|
|
<action selector="likeBtnTapped:" destination="gTV-IL-0wX" eventType="touchUpInside" id="aLn-wm-aOE"/>
|
|
</connections>
|
|
</button>
|
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="CoX-fq-NYx">
|
|
<rect key="frame" x="84" y="0.0" width="5.6666666666666714" height="40"/>
|
|
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="13"/>
|
|
<nil key="textColor"/>
|
|
<nil key="highlightedColor"/>
|
|
</label>
|
|
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="DPV-BO-ggp">
|
|
<rect key="frame" x="91.666666666666686" y="0.0" width="40" height="40"/>
|
|
<constraints>
|
|
<constraint firstAttribute="width" secondItem="DPV-BO-ggp" secondAttribute="height" multiplier="1:1" id="4MG-wK-TWP"/>
|
|
</constraints>
|
|
<color key="tintColor" name="TextDarkBlue"/>
|
|
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
|
<state key="normal" image="heart.fill" catalog="system"/>
|
|
<connections>
|
|
<action selector="favouriteBtnTapped:" destination="gTV-IL-0wX" eventType="touchUpInside" id="zp8-Ry-tIJ"/>
|
|
</connections>
|
|
</button>
|
|
</subviews>
|
|
</stackView>
|
|
</subviews>
|
|
</stackView>
|
|
</subviews>
|
|
<constraints>
|
|
<constraint firstAttribute="height" constant="40" id="UXx-fJ-viE"/>
|
|
</constraints>
|
|
</stackView>
|
|
</subviews>
|
|
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
|
<edgeInsets key="layoutMargins" top="10" left="10" bottom="5" right="10"/>
|
|
<userDefinedRuntimeAttributes>
|
|
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
|
<integer key="value" value="5"/>
|
|
</userDefinedRuntimeAttribute>
|
|
</userDefinedRuntimeAttributes>
|
|
</stackView>
|
|
</subviews>
|
|
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
|
<constraints>
|
|
<constraint firstItem="P6H-iL-C1j" firstAttribute="leading" secondItem="Jur-z4-Lbx" secondAttribute="leading" constant="10" id="FUM-T4-AEc"/>
|
|
<constraint firstAttribute="trailing" secondItem="P6H-iL-C1j" secondAttribute="trailing" constant="10" id="I08-u5-GC7"/>
|
|
<constraint firstAttribute="bottom" secondItem="P6H-iL-C1j" secondAttribute="bottom" constant="10" id="YeD-vX-DD9"/>
|
|
<constraint firstItem="P6H-iL-C1j" firstAttribute="top" secondItem="Jur-z4-Lbx" secondAttribute="top" constant="10" id="e7f-bE-oZr"/>
|
|
</constraints>
|
|
</view>
|
|
</subviews>
|
|
</view>
|
|
<viewLayoutGuide key="safeArea" id="ZTg-uK-7eu"/>
|
|
<constraints>
|
|
<constraint firstAttribute="trailing" secondItem="Jur-z4-Lbx" secondAttribute="trailing" id="JCW-dx-f3v"/>
|
|
<constraint firstAttribute="bottom" secondItem="Jur-z4-Lbx" secondAttribute="bottom" id="f8F-nN-bWb"/>
|
|
<constraint firstItem="Jur-z4-Lbx" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="ncP-lg-MIS"/>
|
|
<constraint firstItem="Jur-z4-Lbx" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="o02-CR-MEs"/>
|
|
</constraints>
|
|
<size key="customSize" width="484" height="299"/>
|
|
<connections>
|
|
<outlet property="cellImage" destination="Yqb-Mj-Uba" id="cLw-iu-FHa"/>
|
|
<outlet property="cellTitle" destination="oRP-Fz-UDh" id="VKb-eW-uDZ"/>
|
|
<outlet property="favBtnn" destination="DPV-BO-ggp" id="gHz-f2-4K5"/>
|
|
<outlet property="likeBtn" destination="oMw-mq-dfy" id="Jaz-7z-3Vw"/>
|
|
<outlet property="totalLikes" destination="CoX-fq-NYx" id="xQO-b0-Eb7"/>
|
|
</connections>
|
|
<point key="canvasLocation" x="535.87786259541986" y="131.33802816901408"/>
|
|
</collectionViewCell>
|
|
</objects>
|
|
<resources>
|
|
<image name="hand.thumbsup.fill" catalog="system" width="128" height="121"/>
|
|
<image name="heart.fill" catalog="system" width="128" height="107"/>
|
|
<namedColor name="TextDarkBlue">
|
|
<color red="0.10599999874830246" green="0.050999999046325684" blue="0.60399997234344482" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
|
</namedColor>
|
|
<systemColor name="systemBackgroundColor">
|
|
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
|
</systemColor>
|
|
</resources>
|
|
</document>
|