completed mylistviewall added api
This commit is contained in:
@@ -1329,17 +1329,17 @@ Sent to Your Parent’s Email</string>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="BackgroundSplash" translatesAutoresizingMaskIntoConstraints="NO" id="kVU-tZ-Qxe">
|
||||
<rect key="frame" x="0.0" y="0.0" width="430" height="932"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="428" height="932"/>
|
||||
</imageView>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="WokaLogo" translatesAutoresizingMaskIntoConstraints="NO" id="Ux8-r9-rZb">
|
||||
<rect key="frame" x="145" y="50" width="140" height="52.666666666666657"/>
|
||||
<rect key="frame" x="144" y="50" width="140" height="52.666666666666657"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" secondItem="Ux8-r9-rZb" secondAttribute="height" multiplier="8:3" id="3Bo-85-Opy"/>
|
||||
<constraint firstAttribute="width" constant="140" id="abR-fA-jTS"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="60" translatesAutoresizingMaskIntoConstraints="NO" id="OXs-y6-ZlP">
|
||||
<rect key="frame" x="36" y="132.66666666666669" width="374" height="675.33333333333326"/>
|
||||
<rect key="frame" x="34" y="132.66666666666669" width="374" height="675.33333333333326"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Your Email Looks Familiar!" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wlw-Ne-TMy" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="10" y="0.0" width="354" height="29"/>
|
||||
@@ -1367,10 +1367,10 @@ Sent to Your Parent’s Email</string>
|
||||
<edgeInsets key="layoutMargins" top="0.0" left="10" bottom="0.0" right="10"/>
|
||||
</stackView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="35" translatesAutoresizingMaskIntoConstraints="NO" id="xXI-1K-L56">
|
||||
<rect key="frame" x="30" y="828" width="370" height="50"/>
|
||||
<rect key="frame" x="30" y="828" width="368" height="50"/>
|
||||
<subviews>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Sli-1N-tGE" customClass="LocalisedElementsButton" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="370" height="50"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="368" height="50"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="50" id="jaN-n0-fQU"/>
|
||||
</constraints>
|
||||
@@ -1440,40 +1440,40 @@ Sent to Your Parent’s Email</string>
|
||||
<size key="intrinsicContentSize" width="8.3333333333333339" height="23.333333333333332"/>
|
||||
</designable>
|
||||
<designable name="4gw-z0-s4a">
|
||||
<size key="intrinsicContentSize" width="150.66666666666666" height="20"/>
|
||||
<size key="intrinsicContentSize" width="200.66666666666666" height="20"/>
|
||||
</designable>
|
||||
<designable name="68c-1b-KSI">
|
||||
<size key="intrinsicContentSize" width="151.66666666666666" height="21"/>
|
||||
<size key="intrinsicContentSize" width="201.66666666666666" height="21"/>
|
||||
</designable>
|
||||
<designable name="81S-Fa-CiD">
|
||||
<size key="intrinsicContentSize" width="8.3333333333333339" height="23.333333333333332"/>
|
||||
</designable>
|
||||
<designable name="DSB-Ge-wNO">
|
||||
<size key="intrinsicContentSize" width="118.66666666666667" height="21"/>
|
||||
<size key="intrinsicContentSize" width="169" height="21"/>
|
||||
</designable>
|
||||
<designable name="Hcd-Mm-IxW">
|
||||
<size key="intrinsicContentSize" width="8.3333333333333339" height="23.333333333333332"/>
|
||||
</designable>
|
||||
<designable name="JRR-Bk-5UP">
|
||||
<size key="intrinsicContentSize" width="167.66666666666666" height="20"/>
|
||||
<size key="intrinsicContentSize" width="217.66666666666666" height="20"/>
|
||||
</designable>
|
||||
<designable name="MpT-bm-drv">
|
||||
<size key="intrinsicContentSize" width="8.3333333333333339" height="23.333333333333332"/>
|
||||
</designable>
|
||||
<designable name="Skx-Ig-91N">
|
||||
<size key="intrinsicContentSize" width="149" height="20"/>
|
||||
<size key="intrinsicContentSize" width="199" height="20"/>
|
||||
</designable>
|
||||
<designable name="iJE-dm-qal">
|
||||
<size key="intrinsicContentSize" width="150.66666666666666" height="20"/>
|
||||
<size key="intrinsicContentSize" width="200.66666666666666" height="20"/>
|
||||
</designable>
|
||||
<designable name="m50-FZ-yVO">
|
||||
<size key="intrinsicContentSize" width="151.66666666666666" height="21"/>
|
||||
<size key="intrinsicContentSize" width="201.66666666666666" height="21"/>
|
||||
</designable>
|
||||
<designable name="tgW-LH-XfR">
|
||||
<size key="intrinsicContentSize" width="119.33333333333333" height="21"/>
|
||||
<size key="intrinsicContentSize" width="169.33333333333334" height="21"/>
|
||||
</designable>
|
||||
<designable name="wy2-0C-rxG">
|
||||
<size key="intrinsicContentSize" width="151.66666666666666" height="21"/>
|
||||
<size key="intrinsicContentSize" width="201.66666666666666" height="21"/>
|
||||
</designable>
|
||||
</designables>
|
||||
<resources>
|
||||
|
||||
@@ -31,6 +31,7 @@ class MyListVC: UIViewController{
|
||||
@IBOutlet weak var guestLoginView: UIView!
|
||||
@IBOutlet weak var guestLoginStack: UIStackView!
|
||||
|
||||
@IBOutlet weak var WebSeriesBtn: LocalisedElementsButton!
|
||||
@IBOutlet weak var karaokeViewBtn: LocalisedElementsButton!
|
||||
|
||||
var vm = MyListVM()
|
||||
@@ -97,6 +98,15 @@ class MyListVC: UIViewController{
|
||||
}
|
||||
|
||||
@IBAction func viewAllBtnTapped(_ sender: UIButton) {
|
||||
switch sender{
|
||||
case karaokeViewBtn:
|
||||
let sb = UIStoryboard(name: K.StoryBoard.home, bundle: nil)
|
||||
let vcPush = sb.instantiateViewController(withIdentifier: K.StoryBoardID.Home.MyListViewAllVC) as! MyListViewAllVC
|
||||
vcPush.vm.postType = 8
|
||||
self.navigationController?.pushViewController(vcPush, animated: true)
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,29 +11,71 @@ class MyListViewAllVC: UIViewController {
|
||||
|
||||
@IBOutlet weak var tableView: UITableView!
|
||||
|
||||
var vm = MyListViewAllVM()
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
setupCell()
|
||||
vm.vc = self
|
||||
vm.initView()
|
||||
// let color1 = #colorLiteral(red: 0, green: 0.4784313725, blue: 0.7529411765, alpha: 1)
|
||||
// let color2 = #colorLiteral(red: 0, green: 0.7529411765, blue: 0.7529411765, alpha: 1)
|
||||
// self.view.applyGradient(colors: [color1,color2], startPoint: .Point.left.point , endPoint: .Point.right.point)
|
||||
|
||||
navigationController?.navigationBar.setBackgroundImage(UIImage(), for: .default)
|
||||
navigationController?.navigationBar.shadowImage = UIImage()
|
||||
}
|
||||
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
super.viewWillAppear(animated)
|
||||
navigationController?.setNavigationBarHidden(false, animated: animated)
|
||||
self.navigationController?.setColor(color: .black)
|
||||
}
|
||||
|
||||
override func viewWillDisappear(_ animated: Bool) {
|
||||
super.viewWillDisappear(animated)
|
||||
self.navigationController?.setNavigationBarHidden(true, animated: animated)
|
||||
}
|
||||
|
||||
override func viewDidDisappear(_ animated: Bool) {
|
||||
super.viewDidDisappear(animated)
|
||||
self.navigationController?.navigationBar.removeGradientBackground()
|
||||
|
||||
// Customize the navigation bar's appearance
|
||||
self.navigationController?.setColor(color: .black)
|
||||
}
|
||||
|
||||
func setupCell(){
|
||||
tableView.register(UINib(nibName: K.CellIdentifier.Home.myListViewAllCell, bundle: nil), forCellReuseIdentifier: K.CellIdentifier.Home.myListViewAllCell)
|
||||
tableView.delegate = self
|
||||
tableView.dataSource = self
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - TableView DataSource , Delegates
|
||||
|
||||
extension MyListViewAllVC : TableViewSRC{
|
||||
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
||||
return 0
|
||||
switch vm.postType{
|
||||
case 1: // webSeries
|
||||
return 0
|
||||
case 8: //KAraoke
|
||||
return vm.favListingData?.singKaraokeData?.count ?? 0
|
||||
default:
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
|
||||
return 220
|
||||
}
|
||||
|
||||
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
||||
let cell = tableView.dequeueReusableCell(withIdentifier: K.CellIdentifier.Home.myListViewAllCell) as! MyListViewAllCell
|
||||
|
||||
switch vm.postType{
|
||||
case 1: // Webseries
|
||||
break
|
||||
case 8: // Karaoke
|
||||
if let karaokeData = vm.favListingData?.singKaraokeData?[indexPath.row] {
|
||||
cell.setKaraokeData(data: karaokeData)
|
||||
}
|
||||
default:
|
||||
break
|
||||
}
|
||||
return cell
|
||||
}
|
||||
}
|
||||
|
||||
@@ -892,7 +892,7 @@
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="OrderBottom" translatesAutoresizingMaskIntoConstraints="NO" id="lws-zb-kGG">
|
||||
<rect key="frame" x="0.0" y="637.33333333333337" width="430" height="294.66666666666663"/>
|
||||
</imageView>
|
||||
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="19V-eU-c5X">
|
||||
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="19V-eU-c5X">
|
||||
<rect key="frame" x="0.0" y="59" width="430" height="839"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</tableView>
|
||||
@@ -1006,25 +1006,42 @@
|
||||
<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="430" height="1347.6666666666667"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="430" height="1357"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="vZT-j7-NyY">
|
||||
<rect key="frame" x="0.0" y="9.9999999999999858" width="430" height="251.66666666666663"/>
|
||||
<rect key="frame" x="0.0" y="10" width="430" height="261"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="isb-Eg-K2k">
|
||||
<rect key="frame" x="0.0" y="0.0" width="430" height="21.666666666666668"/>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" distribution="equalSpacing" translatesAutoresizingMaskIntoConstraints="NO" id="i8e-Ix-aOR">
|
||||
<rect key="frame" x="0.0" y="0.0" width="430" height="31"/>
|
||||
<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="415" height="21.666666666666668"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="430" height="31"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="18"/>
|
||||
<color key="textColor" name="TextDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button hidden="YES" opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="zNj-21-nce" customClass="LocalisedElementsButton" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="100" height="31"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="100" id="xos-0R-tR3"/>
|
||||
</constraints>
|
||||
<color key="tintColor" name="ImageDarkBlue"/>
|
||||
<state key="normal" title="Button"/>
|
||||
<buttonConfiguration key="configuration" style="plain">
|
||||
<attributedString key="attributedTitle">
|
||||
<fragment content="VIEW ALL">
|
||||
<attributes>
|
||||
<font key="NSFont" size="14" name="Exo2-Bold"/>
|
||||
</attributes>
|
||||
</fragment>
|
||||
</attributedString>
|
||||
</buttonConfiguration>
|
||||
</button>
|
||||
</subviews>
|
||||
<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="21.666666666666657" width="430" height="230"/>
|
||||
<rect key="frame" x="0.0" y="31" 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"/>
|
||||
@@ -1040,7 +1057,7 @@
|
||||
</subviews>
|
||||
</stackView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="h1g-o9-Qbb">
|
||||
<rect key="frame" x="0.0" y="271.66666666666669" width="430" height="251.66666666666669"/>
|
||||
<rect key="frame" x="0.0" y="281" width="430" height="251.66666666666663"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="5FA-pO-H2O">
|
||||
<rect key="frame" x="0.0" y="0.0" width="430" height="21.666666666666668"/>
|
||||
@@ -1055,7 +1072,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="21.666666666666629" width="430" height="230"/>
|
||||
<rect key="frame" x="0.0" y="21.666666666666686" 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"/>
|
||||
@@ -1071,7 +1088,7 @@
|
||||
</subviews>
|
||||
</stackView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="G4a-BA-Nw8">
|
||||
<rect key="frame" x="0.0" y="533.33333333333337" width="430" height="251.66666666666663"/>
|
||||
<rect key="frame" x="0.0" y="542.66666666666663" 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="430" height="21.666666666666668"/>
|
||||
@@ -1086,7 +1103,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="21.666666666666629" width="430" height="230"/>
|
||||
<rect key="frame" x="0.0" y="21.666666666666742" 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"/>
|
||||
@@ -1102,7 +1119,7 @@
|
||||
</subviews>
|
||||
</stackView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="jE2-WP-tD4">
|
||||
<rect key="frame" x="0.0" y="795" width="430" height="261"/>
|
||||
<rect key="frame" x="0.0" y="804.33333333333337" width="430" height="261.00000000000011"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="YGM-QR-sbm">
|
||||
<rect key="frame" x="0.0" y="0.0" width="430" height="31"/>
|
||||
@@ -1159,7 +1176,7 @@
|
||||
</subviews>
|
||||
</stackView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="Cgp-Ok-Imj">
|
||||
<rect key="frame" x="0.0" y="1066" width="430" height="251.66666666666674"/>
|
||||
<rect key="frame" x="0.0" y="1075.3333333333333" 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="430" height="21.666666666666668"/>
|
||||
@@ -1190,7 +1207,7 @@
|
||||
</subviews>
|
||||
</stackView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="F2F-sK-9oY">
|
||||
<rect key="frame" x="0.0" y="1327.6666666666667" width="430" height="20"/>
|
||||
<rect key="frame" x="0.0" y="1337" 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"/>
|
||||
@@ -1348,6 +1365,7 @@
|
||||
<tabBarItem key="tabBarItem" title="MY LIST" image="HeartIcon" id="dhn-IV-GcD"/>
|
||||
<navigationItem key="navigationItem" id="dCO-Wi-XFC"/>
|
||||
<connections>
|
||||
<outlet property="WebSeriesBtn" destination="zNj-21-nce" id="Tkc-4Z-odt"/>
|
||||
<outlet property="audioBooksCV" destination="ABR-no-OBf" id="axa-Ry-rEx"/>
|
||||
<outlet property="audioBooksStack" destination="G4a-BA-Nw8" id="kNl-ev-XoJ"/>
|
||||
<outlet property="gamesCV" destination="5ff-Y7-nit" id="vM3-Z9-paV"/>
|
||||
@@ -1454,10 +1472,10 @@
|
||||
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</systemColor>
|
||||
<systemColor name="systemGreenColor">
|
||||
<color red="0.20392156859999999" green="0.78039215689999997" blue="0.34901960780000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<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.78039215689999997" blue="0.74509803919999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<color red="0.0" green="0.7803921568627451" blue="0.74509803921568629" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</systemColor>
|
||||
</resources>
|
||||
</document>
|
||||
|
||||
@@ -20,6 +20,7 @@ class MyListViewAllCell: UITableViewCell {
|
||||
|
||||
override func awakeFromNib() {
|
||||
super.awakeFromNib()
|
||||
self.backgroundColor = .clear
|
||||
// Initialization code
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" rowHeight="236" id="KGk-i7-Jjw" customClass="MyListViewAllCell" customModule="WOKA" customModuleProvider="target">
|
||||
<tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" rowHeight="236" id="KGk-i7-Jjw" customClass="MyListViewAllCell" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="472" height="236"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
|
||||
|
||||
@@ -11,7 +11,7 @@ import Alamofire
|
||||
class MyListViewAllVM{
|
||||
|
||||
weak var vc : MyListViewAllVC!
|
||||
var moduleType = Int()
|
||||
// var moduleType = Int()
|
||||
var postType = Int()
|
||||
var pageNo = 0
|
||||
|
||||
@@ -19,13 +19,20 @@ class MyListViewAllVM{
|
||||
var webSeriesHindi = [FavouriteListingDM.ResultData.ShowDatum]()
|
||||
|
||||
func initView(){
|
||||
setupCell()
|
||||
getFavouriteListing()
|
||||
}
|
||||
|
||||
func setupCell(){
|
||||
vc.tableView.register(UINib(nibName: K.CellIdentifier.Home.myListViewAllCell, bundle: nil), forCellReuseIdentifier: K.CellIdentifier.Home.myListViewAllCell)
|
||||
vc.tableView.delegate = vc.self
|
||||
vc.tableView.dataSource = vc.self
|
||||
}
|
||||
|
||||
// MARK: - Get Favourite Listing
|
||||
|
||||
func getFavouriteListing(){
|
||||
|
||||
Utilities.startProgressHUD()
|
||||
let headers : HTTPHeaders = ["Accept-Language" : AuthFunc.shareInstance.languageSelected == .english ? "English" : "Hindi",
|
||||
"access-token": AuthFunc.shareInstance.getAccessToken()]
|
||||
|
||||
@@ -45,7 +52,7 @@ class MyListViewAllVM{
|
||||
case 1:
|
||||
Utilities.dismissProgressHUD()
|
||||
guard let data = data.data?.result else{return}
|
||||
|
||||
self.favListingData = data
|
||||
if var hindiData = favListingData?.showData{
|
||||
|
||||
/*
|
||||
@@ -95,6 +102,8 @@ class MyListViewAllVM{
|
||||
return modifiedItem
|
||||
}
|
||||
}
|
||||
self.vc.tableView.reloadData()
|
||||
|
||||
default:
|
||||
break
|
||||
}
|
||||
@@ -105,4 +114,17 @@ class MyListViewAllVM{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func updateData(){
|
||||
// non mandatory (values: 1=series, 2=season, 3=episode, 4=video, 5=paint, 6=game, 7=audio, 8=kareoke video, 9=shop product, 10=parental video, 11=article)
|
||||
|
||||
switch postType{
|
||||
case 1: // webSeries
|
||||
self.vc.title = "WEB SERIES"
|
||||
case 8: //KAraoke
|
||||
self.vc.title = "KARAOKE"
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user