- Modified the like and favourite image.

- Resized the images
- Added Icon coloring dynamically
- Fixed issue of constraint breaking for Season Cells
- Fixed issue of TableHeight
- Updated MyList Icons, also modified the click handler
- Fixed the issue of favourite remove in my list screen
- finalised mylist refresh, when user goes from mylist to seasons.
This commit is contained in:
Bilal
2024-06-30 23:29:32 +05:30
parent bf98cc89b1
commit 12ddde2eb0
35 changed files with 571 additions and 283 deletions

View File

@@ -728,6 +728,7 @@
9CDCE1432BDB9B64003FEF11 /* Sounds */,
52C8B0722BDA7560003B51D0 /* GIF_JSON */,
523ED2942BDA3D0800CFED02 /* Fonts */,
9C56E8472BDBEFAB00E4CA14 /* AssetColor.swift */,
523ED2662BDA2BC900CFED02 /* Assets.xcassets */,
);
path = Assets;
@@ -898,7 +899,6 @@
5202AAFF2BDFA7860043B7BD /* Validations */,
52C8B06A2BDA6E7A003B51D0 /* Localized */,
52C8B0522BDA4B58003B51D0 /* UIElements Helper */,
9C56E8472BDBEFAB00E4CA14 /* AssetColor.swift */,
52663FF62BDFACF60001D8CE /* ShadowView.swift */,
5257B2642BDFB6F50086D79B /* CheckPhoneHomeBtnOrNotch.swift */,
52D774F02BDFC53B001D87DE /* StringSubScript.swift */,

View File

@@ -9,6 +9,7 @@ import UIKit
enum AssetsColor: String {
case TextDarkBlue
case ImageDarkBlue
}
extension UIColor {

View File

@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.365",
"green" : "0.000",
"red" : "0.035"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "1.000",
"green" : "1.000",
"red" : "1.000"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -0,0 +1,26 @@
{
"images" : [
{
"filename" : "FavouriteRemove.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "FavouriteRemove@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "FavouriteRemove@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -0,0 +1,26 @@
{
"images" : [
{
"filename" : "FavouriteAdd.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "FavouriteAdd@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "FavouriteAdd@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@@ -0,0 +1,26 @@
{
"images" : [
{
"filename" : "likeAdd.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "likeAdd@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "likeAdd@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 979 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -0,0 +1,26 @@
{
"images" : [
{
"filename" : "LikeRemove.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "LikeRemove@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "LikeRemove@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@@ -88,7 +88,7 @@ class SelectAvatarVM{
/*
Set UserType
*/
if let createChildAccount{
if createChildAccount != nil{
AuthFunc.shareInstance.regData.user_type = "1"
/*
In Add child will be 1

View File

@@ -27,6 +27,7 @@ class MyListVC: UIViewController{
@IBOutlet weak var scrollView: UIScrollView!
@IBOutlet weak var gradientView: UIView!
var vm = MyListVM()
override func viewDidLoad() {
@@ -57,6 +58,7 @@ class MyListVC: UIViewController{
override func viewDidAppear(_ animated: Bool) {
if K.GVar.reloadMyList{
K.GVar.reloadMyList = false
Utilities.startProgressHUD()
vm.getFavouriteListing()
}
}
@@ -201,7 +203,6 @@ extension MyListVC : CollectionViewSRC{
webSeriesHindiCV.reloadItems(at: [IndexPath(row: i, section: 0)])
}
}
}
}
}
@@ -413,9 +414,98 @@ extension MyListVC : CollectionViewSRC{
}
extension MyListVC : ReloadSeriesFavLike{
func updateRows(index: Int, type: FavCellCLick) {
updateFavLikes(type: type, index: index)
func updateRows(index: Int, type: FavCellCLick, isFav: Bool?, isLike: Bool?) {
switch vm.selectedCollection {
case .webSeriesCV:
// if let isFav{
// let categoryID = vm.categoryListingData[vm.dropDownModule.indexForSelectedRow ?? 0].id ?? 0
// switch isFav{
// case true:
// vm.showData[index].markAsFavourite = true
// vm.showData[index].favouriteCategoryIDS = ValueWrapper.stringValue(categoryID.toString())
// showListingTableView.reloadRows(at: [IndexPath(row: index, section: 0)],with: .none)
// case false:
// vm.showData[index].markAsFavourite = false
// vm.showData[index].favouriteCategoryIDS = ValueWrapper.stringValue("")
// showListingTableView.reloadRows(at: [IndexPath(row: index, section: 0)],with: .none)
// }
// K.GVar.reloadMyList = true
// }
if let isLike{
switch isLike{
case true:
vm.favListingData?.showData?[index].isLiked = true
vm.favListingData?.showData?[index].likesCount! += 1
webSeriesCV.reloadItems(at: [IndexPath(row: index, section: 0)])
for (i,element) in vm.webSeriesHindi.enumerated(){
if element.id == vm.favListingData?.showData?[index].id{
vm.webSeriesHindi[i].isLiked = true
vm.webSeriesHindi[i].likesCount! += 1
webSeriesHindiCV.reloadItems(at: [IndexPath(row: i, section: 0)])
}
}
case false:
vm.favListingData?.showData?[index].isLiked = false
vm.favListingData?.showData?[index].likesCount! -= 1
webSeriesCV.reloadItems(at: [IndexPath(row: index, section: 0)])
for (i,element) in vm.webSeriesHindi.enumerated(){
if element.id == vm.favListingData?.showData?[index].id{
vm.webSeriesHindi[i].isLiked = false
vm.webSeriesHindi[i].likesCount! -= 1
webSeriesHindiCV.reloadItems(at: [IndexPath(row: i, section: 0)])
}
}
}
}
case .webSeriesHindiCV:
if let isLike{
switch isLike{
case true:
vm.webSeriesHindi[index].isLiked = true
vm.webSeriesHindi[index].likesCount! += 1
webSeriesHindiCV.reloadItems(at: [IndexPath(row: index, section: 0)])
vm.checkNil()
guard let showData = vm.favListingData?.showData else{return}
for (i,element) in showData.enumerated(){
if element.id == vm.webSeriesHindi[index].id{
vm.favListingData?.showData?[i].isLiked = true
vm.favListingData?.showData?[i].likesCount! += 1
webSeriesCV.reloadItems(at: [IndexPath(row: i, section: 0)])
}
}
case false:
vm.webSeriesHindi[index].isLiked = false
vm.webSeriesHindi[index].likesCount! -= 1
webSeriesHindiCV.reloadItems(at: [IndexPath(row: index, section: 0)])
vm.checkNil()
guard let showData = vm.favListingData?.showData else{return}
for (i,element) in showData.enumerated(){
if element.id == vm.webSeriesHindi[index].id{
vm.favListingData?.showData?[i].isLiked = false
vm.favListingData?.showData?[i].likesCount! -= 1
webSeriesCV.reloadItems(at: [IndexPath(row: i, section: 0)])
}
}
}
}
default:
break
}
print(index , type , isFav, isLike)
}
func updateFavLikes(type : FavCellCLick, index : Int){
switch vm.selectedCollection {
@@ -428,24 +518,13 @@ extension MyListVC : ReloadSeriesFavLike{
if let categoryIds = data.bookmarkCategoryIDS {
let components = categoryIds.components(separatedBy: ",")
if isFav == true && (components.first == categoryID.toString() || components.last == categoryID.toString()){
LikeFavCommonFunc.shareInstance.removeFavourite(postID: postID, postType: postType, categoryID: categoryID, index: index, vc: self) { [unowned self] isDone in
LikeFavCommonFunc.shareInstance.removeFavourite(postID: postID, postType: postType, categoryID: categoryID, vc: self) { [unowned self] isDone in
if isDone{
vm.favListingData?.showData?.remove(at: index)
// vm.webSeriesHindi[index].markAsFavourite = false
// vm.webSeriesHindi[index].bookmarkCategoryIDS = ""
webSeriesCV.reloadItems(at: [IndexPath(row: index, section: 0)])
}
}
}
// else{
// LikeFavCommonFunc.shareInstance.addFavourite(postID: postID, postType: postType, categoryID: categoryID, index: index, vc: self) { [unowned self] isDone in
// if isDone{
// vm.webSeriesHindi[index].markAsFavourite = false
// vm.webSeriesHindi[index].bookmarkCategoryIDS = categoryID.toString()
// webSeriesHindiCV.reloadItems(at: [IndexPath(row: index, section: 0)])
// }
// }
// }
return
}
case .liked:
@@ -478,7 +557,7 @@ extension MyListVC : ReloadSeriesFavLike{
if let categoryIds = data.bookmarkCategoryIDS {
let components = categoryIds.components(separatedBy: ",")
if isFav == true && (components.first == categoryID.toString() || components.last == categoryID.toString()){
LikeFavCommonFunc.shareInstance.removeFavourite(postID: postID, postType: postType, categoryID: categoryID, index: index, vc: self) { [unowned self] isDone in
LikeFavCommonFunc.shareInstance.removeFavourite(postID: postID, postType: postType, categoryID: categoryID, vc: self) { [unowned self] isDone in
if isDone{
vm.webSeriesHindi.remove(at: index)
// vm.webSeriesHindi[index].markAsFavourite = false
@@ -487,7 +566,7 @@ extension MyListVC : ReloadSeriesFavLike{
}
}
}else{
LikeFavCommonFunc.shareInstance.addFavourite(postID: postID, postType: postType, categoryID: categoryID, index: index, vc: self) { [unowned self] isDone in
LikeFavCommonFunc.shareInstance.addFavourite(postID: postID, postType: postType, categoryID: categoryID, vc: self) { [unowned self] isDone in
if isDone{
vm.webSeriesHindi[index].markAsFavourite = false
vm.webSeriesHindi[index].bookmarkCategoryIDS = categoryID.toString()

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="jHz-IY-SVp">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<device id="retina6_72" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
@@ -26,7 +26,7 @@
<objects>
<viewController storyboardIdentifier="SideMenuController" id="jHz-IY-SVp" customClass="SideMenuController" customModule="WOKA" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="10X-qX-Sn2">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<rect key="frame" x="0.0" y="0.0" width="430" height="932"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<viewLayoutGuide key="safeArea" id="Nz1-M4-ahP"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
@@ -73,20 +73,20 @@
<objects>
<viewController id="yYJ-KT-PYn" customClass="SideMenuVC" customModule="WOKA" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" clipsSubviews="YES" contentMode="scaleToFill" id="qHL-AI-7IP">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<rect key="frame" x="0.0" y="0.0" width="430" height="932"/>
<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="79" y="48" width="335" height="814"/>
<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="335" height="1068"/>
<rect key="frame" x="0.0" y="20" width="348" height="1073.6666666666667"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Xny-eg-3V4">
<rect key="frame" x="25" y="0.0" width="295" height="30"/>
<rect key="frame" x="25" y="0.0" width="308" height="30"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="oX8-tK-cUr">
<rect key="frame" x="265" y="0.0" width="30" height="30"/>
<rect key="frame" x="278" y="0.0" width="30" height="30"/>
<constraints>
<constraint firstAttribute="width" secondItem="oX8-tK-cUr" secondAttribute="height" multiplier="1:1" id="iC5-te-siA"/>
</constraints>
@@ -107,10 +107,10 @@
</constraints>
</view>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="center" spacing="15" translatesAutoresizingMaskIntoConstraints="NO" id="RkV-jH-yAB">
<rect key="frame" x="25" y="60" width="295" height="187"/>
<rect key="frame" x="25" y="59.999999999999986" width="308" height="186.66666666666663"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Wst-a7-Npy">
<rect key="frame" x="51.5" y="0.0" width="192" height="90"/>
<rect key="frame" x="58" y="0.0" width="192" height="90"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HcQ-Ty-2GV">
<rect key="frame" x="51" y="0.0" width="90" height="90"/>
@@ -143,16 +143,16 @@
</constraints>
</view>
<stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="nhO-F4-ZCe">
<rect key="frame" x="103.5" y="105" width="88" height="22"/>
<rect key="frame" x="110" y="105" width="88" height="21.666666666666671"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Hello" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="suo-d0-ZWN" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="44" height="22"/>
<rect key="frame" x="0.0" y="0.0" width="44" height="21.666666666666668"/>
<fontDescription key="fontDescription" name="Exo2-SemiBold" family="Exo 2" pointSize="18"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="User" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="G0X-jh-qqG">
<rect key="frame" x="49" y="0.0" width="39" height="22"/>
<rect key="frame" x="49" y="0.0" width="39" height="21.666666666666668"/>
<fontDescription key="fontDescription" name="Exo2-SemiBold" family="Exo 2" pointSize="18"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
@@ -160,7 +160,7 @@
</subviews>
</stackView>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" adjustsImageSizeForAccessibilityContentSizeCategory="YES" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mCq-h5-pMf" customClass="LocalisedElementsButton" customModule="WOKA" customModuleProvider="target">
<rect key="frame" x="37.5" y="142" width="220" height="45"/>
<rect key="frame" x="44" y="141.66666666666669" width="220" height="45"/>
<color key="backgroundColor" red="0.34901960780000002" green="0.81568627449999997" blue="0.99607843139999996" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="45" id="16m-fq-Z3J"/>
@@ -179,10 +179,10 @@
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="center" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="FFp-2S-Idg" userLabel="THEME">
<rect key="frame" x="25" y="277" width="295" height="187"/>
<rect key="frame" x="25" y="276.66666666666669" width="308" height="193.33333333333331"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="97O-hX-edI" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
<rect key="frame" x="124" y="0.0" width="47.5" height="17"/>
<rect key="frame" x="130.33333333333334" y="0.0" width="47.333333333333343" height="17"/>
<attributedString key="attributedText">
<fragment content="THEME">
<attributes>
@@ -196,20 +196,20 @@
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" spacing="20" translatesAutoresizingMaskIntoConstraints="NO" id="NLo-Lc-0nk">
<rect key="frame" x="11.5" y="27" width="272" height="160"/>
<rect key="frame" x="18" y="27" width="272" height="166.33333333333334"/>
<subviews>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="eUd-z5-WmN">
<rect key="frame" x="20" y="0.0" width="106" height="160"/>
<rect key="frame" x="20" y="0.0" width="106" height="166.33333333333334"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Theme1" translatesAutoresizingMaskIntoConstraints="NO" id="5Wh-aJ-q5B">
<rect key="frame" x="0.0" y="0.0" width="106" height="160"/>
<rect key="frame" x="0.0" y="0.0" width="106" height="166.33333333333334"/>
</imageView>
<view hidden="YES" alpha="0.59999999999999998" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="RDY-eo-rkC">
<rect key="frame" x="0.0" y="0.0" width="106" height="160"/>
<rect key="frame" x="0.0" y="0.0" width="106" height="166.33333333333334"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</view>
<imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="CheckMark" translatesAutoresizingMaskIntoConstraints="NO" id="YDJ-OW-yab">
<rect key="frame" x="38" y="65" width="30" height="30"/>
<rect key="frame" x="38" y="68.333333333333314" width="30" height="30"/>
<constraints>
<constraint firstAttribute="width" secondItem="YDJ-OW-yab" secondAttribute="height" multiplier="1:1" id="SGL-t7-dEJ"/>
<constraint firstAttribute="height" constant="30" id="oMU-Ek-7X1"/>
@@ -236,10 +236,10 @@
</userDefinedRuntimeAttributes>
</view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HCH-H0-TUd">
<rect key="frame" x="146" y="0.0" width="106" height="160"/>
<rect key="frame" x="146" y="0.0" width="106" height="166.33333333333334"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Theme2" translatesAutoresizingMaskIntoConstraints="NO" id="nAY-LD-xxC">
<rect key="frame" x="0.0" y="0.0" width="106" height="160"/>
<rect key="frame" x="0.0" y="0.0" width="106" height="166.33333333333334"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<integer key="value" value="10"/>
@@ -247,11 +247,11 @@
</userDefinedRuntimeAttributes>
</imageView>
<view hidden="YES" alpha="0.59999999999999998" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="myZ-Rs-VkQ">
<rect key="frame" x="0.0" y="0.0" width="106" height="160"/>
<rect key="frame" x="0.0" y="0.0" width="106" height="166.33333333333334"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</view>
<imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="CheckMark" translatesAutoresizingMaskIntoConstraints="NO" id="fAz-cu-AAI">
<rect key="frame" x="38" y="65" width="30" height="30"/>
<rect key="frame" x="38" y="68.333333333333314" width="30" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="H1e-nB-0w3"/>
<constraint firstAttribute="width" secondItem="fAz-cu-AAI" secondAttribute="height" multiplier="1:1" id="icQ-6h-Jfx"/>
@@ -283,20 +283,20 @@
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="17" translatesAutoresizingMaskIntoConstraints="NO" id="VRZ-To-5iq">
<rect key="frame" x="25" y="494" width="295" height="80"/>
<rect key="frame" x="25" y="500" width="308" height="80"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2Ss-sF-9JC">
<rect key="frame" x="0.0" y="0.0" width="295" height="0.5"/>
<rect key="frame" x="0.0" y="0.0" width="308" height="0.66666666666666663"/>
<color key="backgroundColor" red="0.34901960780000002" green="0.81568627449999997" blue="0.99607843139999996" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="vD2-0c-MGR"/>
</constraints>
</view>
<stackView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="czq-AM-ets">
<rect key="frame" x="0.0" y="17.5" width="295" height="45"/>
<rect key="frame" x="0.0" y="17.666666666666629" width="308" height="45"/>
<subviews>
<segmentedControl opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" selectedSegmentIndex="0" translatesAutoresizingMaskIntoConstraints="NO" id="dR3-t9-4tw" customClass="CustomizableSegmentControl" customModule="WOKA" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="265" height="46"/>
<rect key="frame" x="0.0" y="0.0" width="278" height="46"/>
<constraints>
<constraint firstAttribute="height" constant="45" id="S0T-Zr-FUt"/>
</constraints>
@@ -310,7 +310,7 @@
</connections>
</segmentedControl>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="uY8-gn-7UA">
<rect key="frame" x="265" y="0.0" width="30" height="45"/>
<rect key="frame" x="278" y="0.0" width="30" height="45"/>
<constraints>
<constraint firstAttribute="width" constant="30" id="LE3-he-Y3K"/>
</constraints>
@@ -318,7 +318,7 @@
</subviews>
</stackView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="5fV-UP-f4i">
<rect key="frame" x="0.0" y="79.5" width="295" height="0.5"/>
<rect key="frame" x="0.0" y="79.666666666666629" width="308" height="0.3333333333333286"/>
<color key="backgroundColor" red="0.34901960780000002" green="0.81568627449999997" blue="0.99607843139999996" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="EFi-kk-SIB"/>
@@ -327,7 +327,7 @@
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="top" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="NlR-Il-Kw6">
<rect key="frame" x="25" y="604" width="295" height="286"/>
<rect key="frame" x="25" y="610" width="308" height="286"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="27K-dP-rLv">
<rect key="frame" x="0.0" y="0.0" width="108" height="34"/>
@@ -402,17 +402,17 @@
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="15" translatesAutoresizingMaskIntoConstraints="NO" id="eEN-Gz-Lba">
<rect key="frame" x="25" y="920" width="295" height="148"/>
<rect key="frame" x="25" y="926" width="308" height="147.66666666666674"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kdd-R6-VSK">
<rect key="frame" x="0.0" y="0.0" width="295" height="0.5"/>
<rect key="frame" x="0.0" y="0.0" width="308" height="0.66666666666666663"/>
<color key="backgroundColor" red="0.34901960780000002" green="0.81568627449999997" blue="0.99607843139999996" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="zNf-t1-EI9"/>
</constraints>
</view>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="top" translatesAutoresizingMaskIntoConstraints="NO" id="0mL-Ab-I52">
<rect key="frame" x="0.0" y="15.5" width="295" height="20"/>
<rect key="frame" x="0.0" y="15.666666666666629" width="308" height="20"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" distribution="equalSpacing" spacing="20" translatesAutoresizingMaskIntoConstraints="NO" id="sgm-gC-aUu">
<rect key="frame" x="0.0" y="0.0" width="255" height="20"/>
@@ -452,14 +452,14 @@
</subviews>
</stackView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7Xs-es-ydw">
<rect key="frame" x="0.0" y="50.5" width="295" height="0.5"/>
<rect key="frame" x="0.0" y="50.666666666666742" width="308" height="0.3333333333333357"/>
<color key="backgroundColor" red="0.34901960780000002" green="0.81568627449999997" blue="0.99607843139999996" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="yVw-Ap-vAS"/>
</constraints>
</view>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="top" translatesAutoresizingMaskIntoConstraints="NO" id="ALy-fb-Zww">
<rect key="frame" x="0.0" y="66" width="295" height="20"/>
<rect key="frame" x="0.0" y="66" width="308" height="20"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="249" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="DDe-vK-Hd2">
<rect key="frame" x="0.0" y="0.0" width="71" height="20"/>
@@ -477,23 +477,23 @@
</subviews>
</stackView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="KGD-q6-IV3">
<rect key="frame" x="0.0" y="101" width="295" height="0.5"/>
<rect key="frame" x="0.0" y="101" width="308" height="0.6666666666666714"/>
<color key="backgroundColor" red="0.34901960780000002" green="0.81568627449999997" blue="0.99607843139999996" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="qFj-5C-IvH"/>
</constraints>
</view>
<stackView opaque="NO" contentMode="scaleToFill" distribution="equalSpacing" translatesAutoresizingMaskIntoConstraints="NO" id="8Nc-DS-Cyi">
<rect key="frame" x="0.0" y="116.5" width="295" height="16"/>
<rect key="frame" x="0.0" y="116.66666666666674" width="308" height="15.666666666666657"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="WOKA Creations PVT LTD" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fMz-tw-JjQ">
<rect key="frame" x="0.0" y="0.0" width="147" height="16"/>
<rect key="frame" x="0.0" y="0.0" width="147" height="15.666666666666666"/>
<fontDescription key="fontDescription" name="Exo2-Medium" family="Exo 2" pointSize="13"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="VER 25.5" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bOt-Ov-fli">
<rect key="frame" x="248" y="0.0" width="47" height="16"/>
<rect key="frame" x="261" y="0.0" width="47" height="15.666666666666666"/>
<fontDescription key="fontDescription" name="Exo2-Medium" family="Exo 2" pointSize="12"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
@@ -501,7 +501,7 @@
</subviews>
</stackView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="BZg-mG-X2p">
<rect key="frame" x="0.0" y="147.5" width="295" height="0.5"/>
<rect key="frame" x="0.0" y="147.33333333333326" width="308" height="0.33333333333334281"/>
<color key="backgroundColor" red="0.34901960780000002" green="0.81568627449999997" blue="0.99607843139999996" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="jFf-2J-C4a"/>
@@ -572,14 +572,14 @@
<objects>
<viewController storyboardIdentifier="ExploreWokaVC" id="wHe-qy-JF8" customClass="ExploreWokaVC" customModule="WOKA" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="HLg-jy-523">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<rect key="frame" x="0.0" y="0.0" width="430" height="932"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="lxy-WU-CSd">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<rect key="frame" x="0.0" y="0.0" width="430" height="932"/>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bkq-AU-CNT">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<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">
@@ -590,7 +590,7 @@
<nil key="highlightedColor"/>
</label>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="DNc-fQ-fy8">
<rect key="frame" x="97" y="352" width="220" height="440"/>
<rect key="frame" x="105" y="385.66666666666674" width="220" height="440"/>
<subviews>
<stackView opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="iPr-OV-7V5">
<rect key="frame" x="0.0" y="0.0" width="220" height="440"/>
@@ -668,7 +668,7 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ClJ-4O-Ne4">
<rect key="frame" x="0.0" y="165" width="220" height="55"/>
<rect key="frame" x="0.0" y="164.99999999999994" width="220" height="55"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5de-tc-WUV">
<rect key="frame" x="10" y="2" width="200" height="51"/>
@@ -690,7 +690,7 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="EB0-q2-d6p">
<rect key="frame" x="0.0" y="220" width="220" height="55"/>
<rect key="frame" x="0.0" y="219.99999999999994" width="220" height="55"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Zxm-AD-QSC">
<rect key="frame" x="10" y="2" width="200" height="51"/>
@@ -712,7 +712,7 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="jjX-jF-HeM">
<rect key="frame" x="0.0" y="275" width="220" height="55"/>
<rect key="frame" x="0.0" y="274.99999999999994" width="220" height="55"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="rry-dK-R12">
<rect key="frame" x="10" y="2" width="200" height="51"/>
@@ -734,7 +734,7 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HXv-Ph-s5n">
<rect key="frame" x="0.0" y="330" width="220" height="55"/>
<rect key="frame" x="0.0" y="329.99999999999994" width="220" height="55"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="cDI-gA-Sfd">
<rect key="frame" x="10" y="2" width="200" height="51"/>
@@ -756,7 +756,7 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="aug-R4-Sg7">
<rect key="frame" x="0.0" y="385" width="220" height="55"/>
<rect key="frame" x="0.0" y="384.99999999999994" width="220" height="55"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="HH9-9q-T6X">
<rect key="frame" x="10" y="2" width="200" height="51"/>
@@ -795,7 +795,7 @@
</userDefinedRuntimeAttributes>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="P1N-m9-rvT">
<rect key="frame" x="177" y="802" width="60" height="60"/>
<rect key="frame" x="183.66666666666666" y="835.66666666666663" width="62.666666666666657" height="62.333333333333371"/>
<constraints>
<constraint firstAttribute="width" secondItem="P1N-m9-rvT" secondAttribute="height" multiplier="1:1" id="P6m-5H-Mc0"/>
</constraints>
@@ -868,14 +868,18 @@
<objects>
<viewController storyboardIdentifier="MyListVC" id="55l-Gk-Npk" customClass="MyListVC" customModule="WOKA" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="23B-pX-ODs">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<rect key="frame" x="0.0" y="0.0" width="430" height="932"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="OrderBottom" translatesAutoresizingMaskIntoConstraints="NO" id="fTK-nk-bN9">
<rect key="frame" x="0.0" y="538.5" width="414" height="294.5"/>
<rect key="frame" x="0.0" y="574.33333333333337" width="430" height="294.66666666666663"/>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="cxl-Av-gEU">
<rect key="frame" x="0.0" y="0.0" width="430" height="119"/>
<color key="backgroundColor" systemColor="systemMintColor"/>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="a7Y-B6-f0Q">
<rect key="frame" x="359" y="58" width="40" height="40"/>
<rect key="frame" x="375" y="69" width="40" height="40"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="2KM-80-dp7"/>
<constraint firstAttribute="width" secondItem="a7Y-B6-f0Q" secondAttribute="height" multiplier="1:1" id="VYl-jc-u32"/>
@@ -889,18 +893,18 @@
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Favourites" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jbL-QO-JJl" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
<rect key="frame" x="70" y="64" width="111.5" height="26.5"/>
<rect key="frame" x="70" y="74.666666666666671" width="111.33333333333331" height="26.666666666666671"/>
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="22"/>
<color key="textColor" name="TextDarkBlue"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5ML-g4-686">
<rect key="frame" x="5" y="53" width="50" height="50"/>
<rect key="frame" x="5" y="64" width="50" height="50"/>
<constraints>
<constraint firstAttribute="width" constant="50" id="7gr-YK-bnO"/>
<constraint firstAttribute="height" constant="50" id="a9f-OZ-IUx"/>
</constraints>
<color key="tintColor" name="TextDarkBlue"/>
<color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="BackArrow"/>
<connections>
@@ -908,7 +912,7 @@
</connections>
</button>
<stackView hidden="YES" opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="QHo-nZ-miK">
<rect key="frame" x="88" y="330.5" width="238" height="200"/>
<rect key="frame" x="96" y="354" width="238" height="200"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="SupportGirlImage" translatesAutoresizingMaskIntoConstraints="NO" id="JYi-oS-NUV">
<rect key="frame" x="0.0" y="0.0" width="238" height="166"/>
@@ -922,19 +926,19 @@
</subviews>
</stackView>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SyC-Qw-kzE">
<rect key="frame" x="0.0" y="108" width="414" height="705"/>
<rect key="frame" x="0.0" y="119" width="430" height="730"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="45l-57-MA3">
<rect key="frame" x="0.0" y="0.0" width="414" height="1330"/>
<rect key="frame" x="0.0" y="0.0" width="430" height="1338.3333333333333"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="vZT-j7-NyY">
<rect key="frame" x="0.0" y="0.0" width="414" height="252"/>
<rect key="frame" x="0.0" y="9.9999999999999858" width="430" height="251.66666666666663"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="isb-Eg-K2k">
<rect key="frame" x="0.0" y="0.0" width="414" height="22"/>
<rect key="frame" x="0.0" y="0.0" width="430" height="21.666666666666668"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="WebSeries (English)" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xht-7u-pAV" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
<rect key="frame" x="15" y="0.0" width="399" height="22"/>
<rect key="frame" x="15" y="0.0" width="415" height="21.666666666666668"/>
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="18"/>
<color key="textColor" name="TextDarkBlue"/>
<nil key="highlightedColor"/>
@@ -943,7 +947,7 @@
<edgeInsets key="layoutMargins" top="0.0" left="15" bottom="0.0" right="0.0"/>
</stackView>
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="6Y6-vJ-OYT">
<rect key="frame" x="0.0" y="22" width="414" height="230"/>
<rect key="frame" x="0.0" y="21.666666666666657" width="430" height="230"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="230" id="wyY-bJ-KIZ"/>
@@ -959,13 +963,13 @@
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="h1g-o9-Qbb">
<rect key="frame" x="0.0" y="262" width="414" height="252"/>
<rect key="frame" x="0.0" y="271.66666666666669" width="430" height="251.66666666666669"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="5FA-pO-H2O">
<rect key="frame" x="0.0" y="0.0" width="414" height="22"/>
<rect key="frame" x="0.0" y="0.0" width="430" height="21.666666666666668"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="WebSeries (Hindi)" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="UTS-hr-ix6" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
<rect key="frame" x="15" y="0.0" width="399" height="22"/>
<rect key="frame" x="15" y="0.0" width="415" height="21.666666666666668"/>
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="18"/>
<color key="textColor" name="TextDarkBlue"/>
<nil key="highlightedColor"/>
@@ -974,7 +978,7 @@
<edgeInsets key="layoutMargins" top="0.0" left="15" bottom="0.0" right="0.0"/>
</stackView>
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="aW7-x8-HRh">
<rect key="frame" x="0.0" y="22" width="414" height="230"/>
<rect key="frame" x="0.0" y="21.666666666666629" width="430" height="230"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="230" id="rMj-vz-b8j"/>
@@ -990,13 +994,13 @@
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="G4a-BA-Nw8">
<rect key="frame" x="0.0" y="524" width="414" height="252"/>
<rect key="frame" x="0.0" y="533.33333333333337" width="430" height="251.66666666666663"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="xQU-Hb-duc">
<rect key="frame" x="0.0" y="0.0" width="414" height="22"/>
<rect key="frame" x="0.0" y="0.0" width="430" height="21.666666666666668"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Audio Books" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uOV-bc-Z6x" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
<rect key="frame" x="15" y="0.0" width="399" height="22"/>
<rect key="frame" x="15" y="0.0" width="415" height="21.666666666666668"/>
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="18"/>
<color key="textColor" name="TextDarkBlue"/>
<nil key="highlightedColor"/>
@@ -1005,7 +1009,7 @@
<edgeInsets key="layoutMargins" top="0.0" left="15" bottom="0.0" right="0.0"/>
</stackView>
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="ABR-no-OBf">
<rect key="frame" x="0.0" y="22" width="414" height="230"/>
<rect key="frame" x="0.0" y="21.666666666666629" width="430" height="230"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="230" id="hbc-ha-qTS"/>
@@ -1021,13 +1025,13 @@
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="jE2-WP-tD4">
<rect key="frame" x="0.0" y="786" width="414" height="252"/>
<rect key="frame" x="0.0" y="795" width="430" height="251.66666666666674"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="YGM-QR-sbm">
<rect key="frame" x="0.0" y="0.0" width="414" height="22"/>
<rect key="frame" x="0.0" y="0.0" width="430" height="21.666666666666668"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Karaoke" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JBX-qP-uJM" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
<rect key="frame" x="15" y="0.0" width="399" height="22"/>
<rect key="frame" x="15" y="0.0" width="415" height="21.666666666666668"/>
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="18"/>
<color key="textColor" name="TextDarkBlue"/>
<nil key="highlightedColor"/>
@@ -1036,7 +1040,7 @@
<edgeInsets key="layoutMargins" top="0.0" left="15" bottom="0.0" right="0.0"/>
</stackView>
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="Grz-ok-w2U">
<rect key="frame" x="0.0" y="22" width="414" height="230"/>
<rect key="frame" x="0.0" y="21.666666666666629" width="430" height="230"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="230" id="cJI-sp-1u2"/>
@@ -1052,13 +1056,13 @@
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="Cgp-Ok-Imj">
<rect key="frame" x="0.0" y="1048" width="414" height="252"/>
<rect key="frame" x="0.0" y="1056.6666666666667" width="430" height="251.66666666666674"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="V6u-Uf-Yc7">
<rect key="frame" x="0.0" y="0.0" width="414" height="22"/>
<rect key="frame" x="0.0" y="0.0" width="430" height="21.666666666666668"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Games" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Qph-Fh-w3E" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
<rect key="frame" x="15" y="0.0" width="399" height="22"/>
<rect key="frame" x="15" y="0.0" width="415" height="21.666666666666668"/>
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="18"/>
<color key="textColor" name="TextDarkBlue"/>
<nil key="highlightedColor"/>
@@ -1067,7 +1071,7 @@
<edgeInsets key="layoutMargins" top="0.0" left="15" bottom="0.0" right="0.0"/>
</stackView>
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="5ff-Y7-nit">
<rect key="frame" x="0.0" y="22" width="414" height="230"/>
<rect key="frame" x="0.0" y="21.666666666666515" width="430" height="230"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="230" id="vnV-51-p2Q"/>
@@ -1083,7 +1087,7 @@
</subviews>
</stackView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="F2F-sK-9oY">
<rect key="frame" x="0.0" y="1310" width="414" height="20"/>
<rect key="frame" x="0.0" y="1318.3333333333333" width="430" height="20"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="Jsj-FP-k6f"/>
@@ -1091,6 +1095,7 @@
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<edgeInsets key="layoutMargins" top="10" left="0.0" bottom="0.0" right="0.0"/>
</stackView>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
@@ -1116,12 +1121,16 @@
<constraint firstItem="SyC-Qw-kzE" firstAttribute="trailing" secondItem="fPD-rO-ZgU" secondAttribute="trailing" id="M3t-nE-gwc"/>
<constraint firstItem="5ML-g4-686" firstAttribute="leading" secondItem="23B-pX-ODs" secondAttribute="leading" constant="5" id="Na5-Wr-DSa"/>
<constraint firstItem="SyC-Qw-kzE" firstAttribute="top" secondItem="a7Y-B6-f0Q" secondAttribute="bottom" constant="10" id="Nyh-j8-zuL"/>
<constraint firstItem="SyC-Qw-kzE" firstAttribute="top" secondItem="cxl-Av-gEU" secondAttribute="bottom" id="Qiy-pS-3K3"/>
<constraint firstItem="fPD-rO-ZgU" firstAttribute="trailing" secondItem="fTK-nk-bN9" secondAttribute="trailing" id="XRW-xO-sGx"/>
<constraint firstItem="cxl-Av-gEU" firstAttribute="top" secondItem="23B-pX-ODs" secondAttribute="top" id="Y0G-Ua-UcP"/>
<constraint firstItem="QHo-nZ-miK" firstAttribute="centerX" secondItem="fPD-rO-ZgU" secondAttribute="centerX" id="ZkK-bD-6Ys"/>
<constraint firstItem="5ML-g4-686" firstAttribute="centerY" secondItem="a7Y-B6-f0Q" secondAttribute="centerY" id="aC4-mQ-heC"/>
<constraint firstItem="SyC-Qw-kzE" firstAttribute="leading" secondItem="fPD-rO-ZgU" secondAttribute="leading" id="cd5-Pg-diL"/>
<constraint firstItem="jbL-QO-JJl" firstAttribute="centerY" secondItem="5ML-g4-686" secondAttribute="centerY" constant="-1" id="h8B-5o-mja"/>
<constraint firstItem="cxl-Av-gEU" firstAttribute="leading" secondItem="fPD-rO-ZgU" secondAttribute="leading" id="iba-8r-UBq"/>
<constraint firstItem="QHo-nZ-miK" firstAttribute="centerY" secondItem="fPD-rO-ZgU" secondAttribute="centerY" id="npC-Cx-MHl"/>
<constraint firstItem="fPD-rO-ZgU" firstAttribute="trailing" secondItem="cxl-Av-gEU" secondAttribute="trailing" id="usz-Hi-BR2"/>
<constraint firstItem="fPD-rO-ZgU" firstAttribute="bottom" secondItem="fTK-nk-bN9" secondAttribute="bottom" constant="-20" id="vmC-a4-Yy3"/>
</constraints>
</view>
@@ -1132,6 +1141,7 @@
<outlet property="audioBooksStack" destination="G4a-BA-Nw8" id="kNl-ev-XoJ"/>
<outlet property="gamesCV" destination="5ff-Y7-nit" id="vM3-Z9-paV"/>
<outlet property="gamesStack" destination="Cgp-Ok-Imj" id="63D-lB-0lW"/>
<outlet property="gradientView" destination="cxl-Av-gEU" id="Sag-vq-nKu"/>
<outlet property="karaokeCV" destination="Grz-ok-w2U" id="vAr-XE-2Ne"/>
<outlet property="karaokeStack" destination="jE2-WP-tD4" id="azr-yq-sDA"/>
<outlet property="noDataStack" destination="QHo-nZ-miK" id="mA1-FT-iQl"/>
@@ -1151,7 +1161,7 @@
<objects>
<viewController id="adP-Pb-amR" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="jxy-3G-70v">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<rect key="frame" x="0.0" y="0.0" width="430" height="932"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<viewLayoutGuide key="safeArea" id="Lvr-K8-9K0"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
@@ -1168,11 +1178,11 @@
<objects>
<viewController storyboardIdentifier="HomeVC" id="M4c-Ct-Tjk" customClass="HomeVC" customModule="WOKA" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="gVN-vo-dvr">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<rect key="frame" x="0.0" y="0.0" width="430" height="932"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<containerView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="xah-cJ-vgJ">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<rect key="frame" x="0.0" y="0.0" width="430" height="932"/>
</containerView>
</subviews>
<viewLayoutGuide key="safeArea" id="VWO-dy-l5s"/>
@@ -1195,24 +1205,24 @@
</scene>
</scenes>
<resources>
<image name="AudioBookIcon" width="33.5" height="30"/>
<image name="AudioBookIcon" width="33.666667938232422" height="30.333333969116211"/>
<image name="BackArrow" width="21.333333969116211" height="21.333333969116211"/>
<image name="BlogsIcon" width="33" height="33"/>
<image name="BlogsIcon" width="33.333332061767578" height="33.333332061767578"/>
<image name="CheckMark" width="48" height="48"/>
<image name="CloseIcon" width="61.333332061767578" height="61.333332061767578"/>
<image name="ExploreWoka" width="36.5" height="25"/>
<image name="GamesIcon" width="33.5" height="30"/>
<image name="HeartIcon" width="26.5" height="26.5"/>
<image name="HomeIcon" width="26.5" height="26.5"/>
<image name="KaraokeIcon" width="33.5" height="30"/>
<image name="ExploreWoka" width="36.666667938232422" height="25"/>
<image name="GamesIcon" width="33.666667938232422" height="30"/>
<image name="HeartIcon" width="26.666666030883789" height="26.666666030883789"/>
<image name="HomeIcon" width="26.666666030883789" height="26.666666030883789"/>
<image name="KaraokeIcon" width="33.666667938232422" height="30"/>
<image name="LiveTvIcon" width="37" height="35"/>
<image name="OrderBottom" width="570.66668701171875" height="294.66665649414062"/>
<image name="ShopIcon" width="38" height="39"/>
<image name="ShopIcon" width="38.333332061767578" height="39"/>
<image name="SideMenu" width="44" height="44"/>
<image name="SupportGirlImage" width="166" height="166"/>
<image name="Theme1" width="106" height="160"/>
<image name="Theme2" width="106" height="160"/>
<image name="WebSeriesIcon" width="33" height="30"/>
<image name="WebSeriesIcon" width="33.333332061767578" height="30.333333969116211"/>
<image name="WokaFmIcon" width="35" height="35"/>
<image name="xmark" catalog="system" width="128" height="113"/>
<namedColor name="TextDarkBlue">
@@ -1224,5 +1234,8 @@
<systemColor name="systemGreenColor">
<color red="0.20392156862745098" green="0.7803921568627451" blue="0.34901960784313724" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemMintColor">
<color red="0.0" green="0.7803921568627451" blue="0.74509803921568629" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
</resources>
</document>

View File

@@ -56,19 +56,18 @@ class FavouriteCell: UICollectionViewCell {
if let favourite = data.markAsFavourite{
switch favourite{
case true:
favBtnn.setImage(UIImage(systemName: "heart.fill"), for: .normal)
favBtnn.setImage(UIImage(named: "FavouriteAdd"), for: .normal)
case false:
favBtnn.setImage(UIImage(systemName: "heart"), for: .normal)
favBtnn.setImage(UIImage(named: "FavouriteRemove"), for: .normal)
}
}
if let like = data.isLiked{
switch like{
case true:
likeBtn.setImage(UIImage(systemName: "hand.thumbsup.fill"), for: .normal)
likeBtn.setImage(UIImage(named: "LikeAdd"), for: .normal)
case false:
likeBtn.setImage(UIImage(systemName: "hand.thumbsup"), for: .normal)
likeBtn.setImage(UIImage(named: "LikeRemove"), for: .normal)
}
}
}
@@ -88,19 +87,18 @@ class FavouriteCell: UICollectionViewCell {
if let favourite = data.markAsFavourite{
switch favourite{
case true:
favBtnn.setImage(UIImage(systemName: "heart.fill"), for: .normal)
favBtnn.setImage(UIImage(named: "FavouriteAdd"), for: .normal)
case false:
favBtnn.setImage(UIImage(systemName: "heart"), for: .normal)
favBtnn.setImage(UIImage(named: "FavouriteRemove"), for: .normal)
}
}
if let like = data.isLiked{
switch like{
case true:
likeBtn.setImage(UIImage(systemName: "hand.thumbsup.fill"), for: .normal)
likeBtn.setImage(UIImage(named: "LikeAdd"), for: .normal)
case false:
likeBtn.setImage(UIImage(systemName: "hand.thumbsup"), for: .normal)
likeBtn.setImage(UIImage(named: "LikeRemove"), for: .normal)
}
}
}

View File

@@ -6,7 +6,6 @@
<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">
@@ -31,7 +30,7 @@
<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"/>
<rect key="frame" x="10" y="59" width="444" height="153"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
@@ -40,64 +39,59 @@
</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"/>
<rect key="frame" x="10" y="215" width="444" height="35"/>
<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"/>
<rect key="frame" x="0.0" y="7.9999999999999982" width="41.666666666666664" height="19.333333333333329"/>
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="16"/>
<color key="textColor" name="ImageDarkBlue"/>
<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"/>
<stackView opaque="NO" contentMode="scaleToFill" spacing="4" translatesAutoresizingMaskIntoConstraints="NO" id="3Ie-X7-GNB">
<rect key="frame" x="363" y="0.0" width="81" height="35"/>
<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"/>
<stackView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="dqQ-h9-X5j">
<rect key="frame" x="0.0" y="0.0" width="42" height="35"/>
<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"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="0wl-al-Mem">
<rect key="frame" x="0.0" y="0.0" width="35" height="35"/>
<constraints>
<constraint firstAttribute="width" secondItem="hAN-DL-3jn" secondAttribute="height" multiplier="1:1" id="wBd-5X-hLN"/>
<constraint firstAttribute="width" secondItem="0wl-al-Mem" secondAttribute="height" multiplier="1:1" id="f5X-yy-AaB"/>
</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"/>
<color key="tintColor" name="ImageDarkBlue"/>
<inset key="imageEdgeInsets" minX="5" minY="5" maxX="5" maxY="5"/>
<state key="normal" image="LikeRemove"/>
<connections>
<action selector="likeBtnTapped:" destination="gTV-IL-0wX" eventType="touchUpInside" id="aLn-wm-aOE"/>
<action selector="likeBtnTapped:" destination="gTV-IL-0wX" eventType="touchUpInside" id="e2W-QA-IK0"/>
</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"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="UPC-ka-rtd">
<rect key="frame" x="35" y="0.0" width="7" height="35"/>
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="16"/>
<color key="textColor" name="ImageDarkBlue"/>
<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>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="DBE-WR-Rqm">
<rect key="frame" x="46" y="0.0" width="35" height="35"/>
<constraints>
<constraint firstAttribute="width" secondItem="DBE-WR-Rqm" secondAttribute="height" multiplier="1:1" id="2V7-gp-vng"/>
</constraints>
<color key="tintColor" name="ImageDarkBlue"/>
<inset key="imageEdgeInsets" minX="5" minY="5" maxX="5" maxY="5"/>
<state key="normal" image="FavouriteRemove">
<preferredSymbolConfiguration key="preferredSymbolConfiguration" scale="large"/>
</state>
<connections>
<action selector="favouriteBtnTapped:" destination="gTV-IL-0wX" eventType="touchUpInside" id="NcK-pP-saa"/>
</connections>
</button>
</subviews>
</stackView>
</subviews>
<constraints>
<constraint firstAttribute="height" constant="40" id="UXx-fJ-viE"/>
<constraint firstAttribute="height" constant="35" id="UXx-fJ-viE"/>
</constraints>
</stackView>
</subviews>
@@ -131,21 +125,18 @@
<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"/>
<outlet property="favBtnn" destination="DBE-WR-Rqm" id="pq9-vR-xbh"/>
<outlet property="likeBtn" destination="0wl-al-Mem" id="oWa-vm-8Yc"/>
<outlet property="totalLikes" destination="UPC-ka-rtd" id="t5f-xV-45t"/>
</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"/>
<image name="FavouriteRemove" width="42.666667938232422" height="42.666667938232422"/>
<image name="LikeRemove" width="42.666667938232422" height="42.666667938232422"/>
<namedColor name="ImageDarkBlue">
<color red="0.035294117647058823" green="0.0" blue="0.36470588235294116" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>

View File

@@ -28,6 +28,11 @@ class MyListVM{
var selectedCollection : CollectionSelectionMyList?
func initView(){
let color1 = #colorLiteral(red: 0.6745098039, green: 0.6235294118, blue: 0.1725490196, alpha: 1)
let color2 = #colorLiteral(red: 0.5450980392, green: 0.6745098039, blue: 0.1725490196, alpha: 1)
vc.gradientView.applyGradient(colors: [color2, color1], startPoint: CGPoint(x: 0, y: 0), endPoint: CGPoint(x: 0.8, y: 0))
setupCell()
Utilities.startProgressHUD()
getFavouriteListing()
@@ -75,6 +80,8 @@ class MyListVM{
self.refreshControl.endRefreshing()
Utilities.dismissProgressHUD()
self.vc.toast(msg: data.message ?? "Unrecognised error" , time: 2)
webSeriesHindi.removeAll()
favListingData = nil
reloadCollections()
checkNil()
case 1:
@@ -87,11 +94,18 @@ class MyListVM{
favListingData = data
if var hindiData = favListingData?.showData{
/*
/*
Taking out the hindi series , 1-> English , 18-> Hindi
And the saving it to hindi series
And the saving it to hindi series, also modify the bookmark category ids
*/
webSeriesHindi = hindiData.compactMap { $0 }.filter { ($0.bookmarkCategoryIDS?.components(separatedBy: ",").first == "18" || $0.bookmarkCategoryIDS?.components(separatedBy: ",").last == "18") }
webSeriesHindi = hindiData.compactMap { $0 }.filter {
($0.bookmarkCategoryIDS?.components(separatedBy: ",").first == "18" || $0.bookmarkCategoryIDS?.components(separatedBy: ",").last == "18")
}.map { element -> FavouriteListingDM.ResultData.ShowDatum in
var modifiedElement = element
modifiedElement.bookmarkCategoryIDS = "18"
return modifiedElement
}
if let data = favListingData?.showData{
var indicesToRemove = [Int]()

View File

@@ -183,7 +183,7 @@ extension MoreVC : TableViewSRC{
guard let self = self else { return }
currentTimePlayer = Int(CMTimeGetSeconds(time))
if let currentPlayingIndex = self.vm.currentIndexPlayingSong,
let cell = self.songTableView.cellForRow(at: IndexPath(row: vm.currentIndexPlayingSong ?? 0, section: 0)) as? SongListCell {
let cell = self.songTableView.cellForRow(at: IndexPath(row: currentPlayingIndex, section: 0)) as? SongListCell {
cell.updateCurrentTime()
}
}

View File

@@ -94,17 +94,6 @@ class WebSeriesSeasonVC: UIViewController {
}
JWPlayerManager.shared.presentPlayer(from: self, playerItems: playerItems, startIndex: 0, contentType: .trailer)
// let seasonData = vm.seasonListingData.filter({$0.id == vm.episodeSelectedCateogory}).first
// if vm.categoryID == 1{
// guard let englishData = seasonData?.seasonMoreDetails?.filter({$0.languageMasterID == 1}).first , let url = englishData.trailerHDURL , let title = englishData.title else{return}
// let playerItem = JwPlayerItemCreate(url: url, poster: seasonData?.thumbnailPath, titles: title)
// JWPlayerManager.shared.presentPlayer(from: self, playerItems: [playerItem], startIndex: 0, contentType: .trailer)
// }else if vm.categoryID == 18{
// guard let hindiData = seasonData?.seasonMoreDetails?.filter({$0.languageMasterID == 2}).first , let url = hindiData.trailerHDURL , let title = hindiData.title else{return}
// let playerItem = JwPlayerItemCreate(url: url, poster: seasonData?.thumbnailPath, titles: title)
// JWPlayerManager.shared.presentPlayer(from: self, playerItems: [playerItem], startIndex: 0, contentType: .trailer)
// }
}
@IBAction func retryBtnTapped(_ sender: LocalisedElementsButton) {

View File

@@ -8,7 +8,8 @@
import UIKit
protocol ReloadSeriesFavLike{
func updateRows(index : Int, type : FavCellCLick)
func updateRows(index : Int, type : FavCellCLick, isFav : Bool? , isLike : Bool? )
}
class WebSeriesVC: UIViewController {
@@ -62,6 +63,11 @@ class WebSeriesVC: UIViewController {
self.navigationController?.setColor(color: .black)
}
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
vm.updateTableHeight()
}
// MARK: - Tap Handler
@IBAction func playTrailer(_ sender: LocalisedElementsButton) {
let item = JwPlayerItemCreate(url: vm.masilaUrl, poster: nil, titles: "Masila")
@@ -111,7 +117,7 @@ extension WebSeriesVC : TableViewSRC{
if let categoryIds = data.favouriteCategoryIDS?.rawValue {
let components = categoryIds.components(separatedBy: ",")
if isFav == true && (components.first == categoryID.toString() || components.last == categoryID.toString()){
LikeFavCommonFunc.shareInstance.removeFavourite(postID: postID, postType: postType, categoryID: categoryID, index: index, vc: self) { [unowned self] isDone in
LikeFavCommonFunc.shareInstance.removeFavourite(postID: postID, postType: postType, categoryID: categoryID, vc: self) { [unowned self] isDone in
if isDone{
vm.showData[index].markAsFavourite = false
vm.showData[index].favouriteCategoryIDS = ValueWrapper.stringValue("")
@@ -120,7 +126,7 @@ extension WebSeriesVC : TableViewSRC{
}
}
}else{
LikeFavCommonFunc.shareInstance.addFavourite(postID: postID, postType: postType, categoryID: categoryID, index: index, vc: self) { [unowned self] isDone in
LikeFavCommonFunc.shareInstance.addFavourite(postID: postID, postType: postType, categoryID: categoryID, vc: self) { [unowned self] isDone in
if isDone{
vm.showData[index].markAsFavourite = true
vm.showData[index].favouriteCategoryIDS = ValueWrapper.stringValue(categoryID.toString())
@@ -134,7 +140,7 @@ extension WebSeriesVC : TableViewSRC{
case .liked:
guard let isLiked = data.isLiked ,let postID = data.id,let postType = data.contentMoreDetails?.first?.postType else{return}
if isLiked{
LikeFavCommonFunc.shareInstance.unlikePost(postID: postID, postType: postType, index: index, vc: self) { [unowned self] isDone in
LikeFavCommonFunc.shareInstance.unlikePost(postID: postID, postType: postType, vc: self) { [unowned self] isDone in
if isDone{
vm.showData[index].isLiked = false
vm.showData[index].likesCount! -= 1
@@ -142,7 +148,7 @@ extension WebSeriesVC : TableViewSRC{
}
}
}else{
LikeFavCommonFunc.shareInstance.likePost(postID: postID, postType: postType, index: index, vc: self){ [unowned self] isDone in
LikeFavCommonFunc.shareInstance.likePost(postID: postID, postType: postType, vc: self){ [unowned self] isDone in
if isDone{
vm.showData[index].isLiked = true
vm.showData[index].likesCount! += 1
@@ -171,11 +177,38 @@ extension WebSeriesVC : TableViewSRC{
}
extension WebSeriesVC : ReloadSeriesFavLike{
func updateRows(index: Int, type: FavCellCLick) {
print(index , type)
updateFavLikes(type: type, index: index)
}
// if like or fav is done in webseriesseason vc, dont need to do api call in this screen.
func updateRows(index: Int, type: FavCellCLick, isFav: Bool?, isLike: Bool?) {
if let isFav{
let categoryID = vm.categoryListingData[vm.dropDownModule.indexForSelectedRow ?? 0].id ?? 0
switch isFav{
case true:
vm.showData[index].markAsFavourite = true
vm.showData[index].favouriteCategoryIDS = ValueWrapper.stringValue(categoryID.toString())
showListingTableView.reloadRows(at: [IndexPath(row: index, section: 0)],with: .none)
case false:
vm.showData[index].markAsFavourite = false
vm.showData[index].favouriteCategoryIDS = ValueWrapper.stringValue("")
showListingTableView.reloadRows(at: [IndexPath(row: index, section: 0)],with: .none)
}
K.GVar.reloadMyList = true
}
if let isLike{
switch isLike{
case true:
vm.showData[index].isLiked = true
vm.showData[index].likesCount! += 1
showListingTableView.reloadRows(at: [IndexPath(row: index, section: 0)],with: .none)
case false:
vm.showData[index].isLiked = false
vm.showData[index].likesCount! -= 1
showListingTableView.reloadRows(at: [IndexPath(row: index, section: 0)],with: .none)
}
K.GVar.reloadMyList = true
}
}
}
// MARK: - CollectionView Delegate and Data Source

View File

@@ -14,7 +14,7 @@ class LikeFavCommonFunc{
// MARK: - Like , unlike
func likePost(postID : Int, postType : Int, index : Int, vc : UIViewController, onCompletion : @escaping (Bool) -> Void){
func likePost(postID : Int, postType : Int, vc : UIViewController, onCompletion : @escaping (Bool) -> Void){
Utilities.startProgressHUD()
let headers : HTTPHeaders = ["Accept-Language" : AuthFunc.shareInstance.languageSelected == .english ? "English" : "Hindi",
"access-token": AuthFunc.shareInstance.getAccessToken()]
@@ -45,7 +45,7 @@ class LikeFavCommonFunc{
}
}
func unlikePost(postID : Int, postType : Int , index : Int, vc : UIViewController, onCompletion : @escaping (Bool) -> Void){
func unlikePost(postID : Int, postType : Int, vc : UIViewController, onCompletion : @escaping (Bool) -> Void){
Utilities.startProgressHUD()
let headers : HTTPHeaders = ["Accept-Language" : AuthFunc.shareInstance.languageSelected == .english ? "English" : "Hindi",
"access-token": AuthFunc.shareInstance.getAccessToken()]
@@ -77,7 +77,7 @@ class LikeFavCommonFunc{
// MARK: - Remove Favourite
func removeFavourite(postID : Int, postType : Int, categoryID : Int, index : Int, vc : UIViewController, onCompletion : @escaping (Bool) -> Void){
func removeFavourite(postID : Int, postType : Int, categoryID : Int, vc : UIViewController, onCompletion : @escaping (Bool) -> Void){
Utilities.startProgressHUD()
let headers : HTTPHeaders = ["Accept-Language" : AuthFunc.shareInstance.languageSelected == .english ? "English" : "Hindi",
"access-token": AuthFunc.shareInstance.getAccessToken()]
@@ -108,7 +108,7 @@ class LikeFavCommonFunc{
}
}
func addFavourite(postID : Int, postType : Int, categoryID : Int, index : Int, vc : UIViewController, onCompletion : @escaping (Bool) -> Void){
func addFavourite(postID : Int, postType : Int, categoryID : Int, vc : UIViewController, onCompletion : @escaping (Bool) -> Void){
Utilities.startProgressHUD()
let headers : HTTPHeaders = ["Accept-Language" : AuthFunc.shareInstance.languageSelected == .english ? "English" : "Hindi",
"access-token": AuthFunc.shareInstance.getAccessToken()]

View File

@@ -4,6 +4,7 @@
<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="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
@@ -41,15 +42,22 @@
<rect key="frame" x="10" y="106" width="297" 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="80Y-vk-pEH">
<rect key="frame" x="0.0" y="12.333333333333329" width="34" height="15.666666666666664"/>
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="13"/>
<nil key="textColor"/>
<rect key="frame" x="0.0" y="10.333333333333327" width="41.666666666666664" height="19.333333333333329"/>
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="16"/>
<color key="textColor" name="ImageDarkBlue"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hpR-vj-wP1">
<rect key="frame" x="263" y="12.333333333333329" width="34" height="15.666666666666664"/>
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="13"/>
<nil key="textColor"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hpR-vj-wP1">
<rect key="frame" x="264" y="12.333333333333329" width="33" height="15.666666666666664"/>
<attributedString key="attributedText">
<fragment content="Label">
<attributes>
<color key="NSColor" name="ImageDarkBlue"/>
<font key="NSFont" size="13" name="Exo2-SemiBold"/>
<paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
</attributedString>
<nil key="highlightedColor"/>
</label>
</subviews>
@@ -89,4 +97,9 @@
<point key="canvasLocation" x="350.38167938931298" y="69.014084507042256"/>
</collectionViewCell>
</objects>
<resources>
<namedColor name="ImageDarkBlue">
<color red="0.035294117647058823" green="0.0" blue="0.36470588235294116" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>

View File

@@ -48,9 +48,9 @@ class WebSeriesShowListingCell: UITableViewCell {
if let like = data.isLiked{
switch like{
case true:
likeBtn.setImage(UIImage(systemName: "hand.thumbsup.fill"), for: .normal)
likeBtn.setImage(UIImage(named: "LikeAdd"), for: .normal)
case false:
likeBtn.setImage(UIImage(systemName: "hand.thumbsup"), for: .normal)
likeBtn.setImage(UIImage(named: "LikeRemove"), for: .normal)
}
}
@@ -58,17 +58,17 @@ class WebSeriesShowListingCell: UITableViewCell {
if let categoryIds = data.favouriteCategoryIDS?.rawValue { // if string, it means category is selected for multiple language
let components = categoryIds.components(separatedBy: ",")
if favourite == true && (components.first == selectedCategory.toString() || components.last == selectedCategory.toString()){
favBtn.setImage(UIImage(systemName: "heart.fill"), for: .normal)
favBtn.setImage(UIImage(named: "FavouriteAdd"), for: .normal)
}else{
favBtn.setImage(UIImage(systemName: "heart"), for: .normal)
favBtn.setImage(UIImage(named: "FavouriteRemove"), for: .normal)
}
return
}
if favourite == true && data.favouriteCategoryIDS?.intValue == selectedCategory{
favBtn.setImage(UIImage(systemName: "heart.fill"), for: .normal)
favBtn.setImage(UIImage(named: "FavouriteAdd"), for: .normal)
}else{
favBtn.setImage(UIImage(systemName: "heart"), for: .normal)
favBtn.setImage(UIImage(named: "FavouriteRemove"), for: .normal)
}
// switch favourite{
// case true:

View File

@@ -25,10 +25,10 @@
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="sbJ-4V-z2d" customClass="ShimmerEffectView" customModule="WOKA" customModuleProvider="target">
<rect key="frame" x="5" y="5" width="507" height="228"/>
<rect key="frame" x="5" y="5" width="507" height="223"/>
<subviews>
<stackView opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" axis="vertical" distribution="fillProportionally" spacing="3" translatesAutoresizingMaskIntoConstraints="NO" id="G54-zR-8Xw">
<rect key="frame" x="0.0" y="0.0" width="507" height="228"/>
<rect key="frame" x="0.0" y="0.0" width="507" height="223"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="EAi-LC-2U0">
<rect key="frame" x="10" y="10" width="487" height="170"/>
@@ -42,65 +42,60 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<stackView opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" distribution="equalSpacing" alignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="nyj-pp-g9k">
<rect key="frame" x="10" y="183" width="487" height="40"/>
<stackView opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" distribution="equalSpacing" alignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="nyj-pp-g9k" userLabel="TitleLikeFav">
<rect key="frame" x="10" y="183" width="487" height="35"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="m8K-7d-Jib">
<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"/>
<rect key="frame" x="0.0" y="8.6666666666666572" width="39" height="18"/>
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="15"/>
<color key="textColor" name="ImageDarkBlue"/>
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" alignment="bottom" spacing="7" translatesAutoresizingMaskIntoConstraints="NO" id="Yeo-E9-Zv6">
<rect key="frame" x="355.33333333333331" y="0.0" width="131.66666666666669" height="40"/>
<stackView opaque="NO" contentMode="scaleToFill" spacing="4" translatesAutoresizingMaskIntoConstraints="NO" id="BXr-9k-Qk2">
<rect key="frame" x="406" y="0.0" width="81" height="35"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="BXr-9k-Qk2">
<rect key="frame" x="0.0" y="0.0" width="131.66666666666666" height="40"/>
<stackView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="IrN-Lh-C6d">
<rect key="frame" x="0.0" y="0.0" width="42" height="35"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1hk-86-QRw">
<rect key="frame" x="0.0" y="0.0" width="40" height="40"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="width" secondItem="1hk-86-QRw" secondAttribute="height" multiplier="1:1" id="xxl-2N-8EP"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="JZR-Nd-wLM">
<rect key="frame" x="42" y="0.0" width="40" height="40"/>
<rect key="frame" x="0.0" y="0.0" width="35" height="35"/>
<constraints>
<constraint firstAttribute="width" secondItem="JZR-Nd-wLM" secondAttribute="height" multiplier="1:1" id="atx-c5-FRS"/>
</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"/>
<color key="tintColor" name="ImageDarkBlue"/>
<inset key="imageEdgeInsets" minX="5" minY="5" maxX="5" maxY="5"/>
<state key="normal" image="LikeRemove"/>
<connections>
<action selector="btnTapped:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="EuW-HE-LQb"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1ig-SQ-qye">
<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"/>
<rect key="frame" x="35" y="0.0" width="7" height="35"/>
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="16"/>
<color key="textColor" name="ImageDarkBlue"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="JKZ-Mx-BE0">
<rect key="frame" x="91.666666666666686" y="0.0" width="40" height="40"/>
<constraints>
<constraint firstAttribute="width" secondItem="JKZ-Mx-BE0" secondAttribute="height" multiplier="1:1" id="Klv-tP-CFQ"/>
</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="btnTapped:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="Lac-h1-kbx"/>
</connections>
</button>
</subviews>
</stackView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="JKZ-Mx-BE0">
<rect key="frame" x="46" y="0.0" width="35" height="35"/>
<constraints>
<constraint firstAttribute="width" secondItem="JKZ-Mx-BE0" secondAttribute="height" multiplier="1:1" id="Klv-tP-CFQ"/>
</constraints>
<color key="tintColor" name="ImageDarkBlue"/>
<inset key="imageEdgeInsets" minX="5" minY="5" maxX="5" maxY="5"/>
<state key="normal" image="FavouriteRemove">
<preferredSymbolConfiguration key="preferredSymbolConfiguration" scale="large"/>
</state>
<connections>
<action selector="btnTapped:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="Lac-h1-kbx"/>
</connections>
</button>
</subviews>
</stackView>
</subviews>
<constraints>
<constraint firstAttribute="height" constant="40" id="eHz-Hw-4GD"/>
<constraint firstAttribute="height" constant="35" id="eHz-Hw-4GD"/>
</constraints>
</stackView>
</subviews>
@@ -144,10 +139,10 @@
</tableViewCell>
</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"/>
<image name="FavouriteRemove" width="42.666667938232422" height="42.666667938232422"/>
<image name="LikeRemove" width="42.666667938232422" height="42.666667938232422"/>
<namedColor name="ImageDarkBlue">
<color red="0.035294117647058823" green="0.0" blue="0.36470588235294116" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>

View File

@@ -32,31 +32,47 @@ class WebSeriesSeasonVM{
setShowData()
vc.addView.addTapGesture { [weak self] in
guard let self ,let indexSelected, let categoryID, let showData, let isFav = showData.markAsFavourite else{return}
vc.likeFavDelegate?.updateRows(index: indexSelected, type: .favourite)
guard let self ,let indexSelected, let categoryID, let showData, let showID = showData.id, let isFav = showData.markAsFavourite, let postType = showData.contentMoreDetails?.first?.postType else{return}
if isFav {
self.showData?.markAsFavourite = false
self.showData?.favouriteCategoryIDS = ValueWrapper.stringValue("")
LikeFavCommonFunc.shareInstance.removeFavourite(postID: showID, postType: postType, categoryID: categoryID, vc: self.vc) { isDone in
self.showData?.markAsFavourite = false
self.showData?.favouriteCategoryIDS = ValueWrapper.stringValue("")
self.setShowData()
self.vc.likeFavDelegate?.updateRows(index: indexSelected, type: .favourite, isFav: false, isLike: nil)
K.GVar.reloadMyList = true
}
}else{
self.showData?.markAsFavourite = true
self.showData?.favouriteCategoryIDS = ValueWrapper.stringValue(categoryID.toString())
LikeFavCommonFunc.shareInstance.addFavourite(postID: showID, postType: postType, categoryID: categoryID, vc: self.vc) { isDone in
self.showData?.markAsFavourite = true
self.showData?.favouriteCategoryIDS = ValueWrapper.stringValue(categoryID.toString())
self.setShowData()
self.vc.likeFavDelegate?.updateRows(index: indexSelected, type: .favourite, isFav: true, isLike: nil)
K.GVar.reloadMyList = true
}
}
setShowData()
}
vc.likeView.addTapGesture { [weak self] in
guard let self ,let indexSelected, let showData, let isLiked = showData.isLiked else{return}
vc.likeFavDelegate?.updateRows(index: indexSelected, type: .liked)
guard let self ,let indexSelected, let showData, let showID = showData.id, let isLiked = showData.isLiked, let postType = showData.contentMoreDetails?.first?.postType else{return}
if isLiked{
self.showData?.isLiked = false
self.showData?.likesCount! -= 1
LikeFavCommonFunc.shareInstance.unlikePost(postID: showID, postType: postType, vc: self.vc) { isDone in
self.showData?.isLiked = false
self.showData?.likesCount! -= 1
self.setShowData()
self.vc.likeFavDelegate?.updateRows(index: indexSelected, type: .liked, isFav: nil, isLike: false)
}
}else{
self.showData?.isLiked = true
self.showData?.likesCount! += 1
LikeFavCommonFunc.shareInstance.likePost(postID: showID, postType: postType, vc: self.vc) { isDone in
self.showData?.isLiked = true
self.showData?.likesCount! += 1
self.setShowData()
self.vc.likeFavDelegate?.updateRows(index: indexSelected, type: .liked, isFav: nil, isLike: true)
}
}
setShowData()
}
vc.shareView.addTapGesture {
print("share")
}

View File

@@ -24,12 +24,7 @@ class WebSeriesVM{
func initView(){
setupCell()
self.vc.tableHeight.constant = self.vc.showListingTableView.contentSize.height + 100
self.vc.showListingTableView.layoutIfNeeded()
self.vc.tableHeight.constant = self.vc.showListingTableView.contentSize.height
startShimmer()
vc.scrollView.indicatorStyle = .white // or .white
let color1 = #colorLiteral(red: 0.5921568627, green: 0.2588235294, blue: 0.8941176471, alpha: 1)
@@ -73,6 +68,12 @@ class WebSeriesVM{
vc.showListingTableView.dataSource = vc.self
}
func updateTableHeight(){
self.vc.tableHeight.constant = self.vc.showListingTableView.contentSize.height + 100
self.vc.showListingTableView.layoutIfNeeded()
self.vc.tableHeight.constant = self.vc.showListingTableView.contentSize.height
}
// MARK: - DropDown
func initDropDown(){

View File

@@ -434,7 +434,7 @@
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" image="heart" catalog="system" translatesAutoresizingMaskIntoConstraints="NO" id="QkS-fP-ADo">
<rect key="frame" x="5" y="2" width="30" height="33"/>
<color key="tintColor" name="TextDarkBlue"/>
<color key="tintColor" name="ImageDarkBlue"/>
<constraints>
<constraint firstAttribute="width" constant="30" id="MvO-j1-tEk"/>
</constraints>
@@ -445,7 +445,7 @@
<constraint firstAttribute="height" constant="14" id="LAN-B9-IDU"/>
</constraints>
<fontDescription key="fontDescription" name="Exo2-Regular" family="Exo 2" pointSize="12"/>
<color key="textColor" name="TextDarkBlue"/>
<color key="textColor" name="ImageDarkBlue"/>
<nil key="highlightedColor"/>
</label>
</subviews>
@@ -475,7 +475,7 @@
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" image="ShareImage" translatesAutoresizingMaskIntoConstraints="NO" id="Azy-gL-vtW">
<rect key="frame" x="10" y="0.0" width="20" height="36"/>
<color key="tintColor" name="TextDarkBlue"/>
<color key="tintColor" name="ImageDarkBlue"/>
<constraints>
<constraint firstAttribute="width" constant="20" id="clk-de-Plw"/>
</constraints>
@@ -486,7 +486,7 @@
<constraint firstAttribute="height" constant="14" id="rTT-BS-v4Y"/>
</constraints>
<fontDescription key="fontDescription" name="Exo2-Regular" family="Exo 2" pointSize="12"/>
<color key="textColor" name="TextDarkBlue"/>
<color key="textColor" name="ImageDarkBlue"/>
<nil key="highlightedColor"/>
</label>
</subviews>
@@ -518,7 +518,7 @@
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" image="hand.thumbsup" catalog="system" translatesAutoresizingMaskIntoConstraints="NO" id="f9M-ON-9gL">
<rect key="frame" x="7.6666666666666856" y="-0.33333333333333215" width="25" height="36"/>
<color key="tintColor" name="TextDarkBlue"/>
<color key="tintColor" name="ImageDarkBlue"/>
<constraints>
<constraint firstAttribute="width" constant="25" id="UAK-v9-EKA"/>
</constraints>
@@ -529,7 +529,7 @@
<constraint firstAttribute="height" constant="14" id="169-aC-7et"/>
</constraints>
<fontDescription key="fontDescription" name="Exo2-Regular" family="Exo 2" pointSize="12"/>
<color key="textColor" name="TextDarkBlue"/>
<color key="textColor" name="ImageDarkBlue"/>
<nil key="highlightedColor"/>
</label>
</subviews>
@@ -1068,6 +1068,9 @@
<image name="hand.thumbsup" catalog="system" width="123" height="128"/>
<image name="hand.thumbsup.fill" catalog="system" width="128" height="121"/>
<image name="heart" catalog="system" width="128" height="107"/>
<namedColor name="ImageDarkBlue">
<color red="0.035294117647058823" green="0.0" blue="0.36470588235294116" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="TextDarkBlue">
<color red="0.10599999874830246" green="0.050999999046325684" blue="0.60399997234344482" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>