Completed Report Module
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
4469E533EC95AC428FE50FB2 /* Pods_WOKA.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B045136DB6D1DB0D38BD128 /* Pods_WOKA.framework */; };
|
||||
5202AAFE2BDF90590043B7BD /* TextFieldImage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5202AAFD2BDF90590043B7BD /* TextFieldImage.swift */; };
|
||||
5202AB012BDFA7900043B7BD /* EmailValidation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5202AB002BDFA7900043B7BD /* EmailValidation.swift */; };
|
||||
520346962C64E29A00D0BD20 /* MyListViewAllCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 520346952C64E29A00D0BD20 /* MyListViewAllCell.xib */; };
|
||||
520346972C64E29A00D0BD20 /* MyListViewAllCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 520346942C64E29A00D0BD20 /* MyListViewAllCell.swift */; };
|
||||
5219C2C22C086D9C00A1DF4D /* DataTypeConversion.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5219C2C12C086D9B00A1DF4D /* DataTypeConversion.swift */; };
|
||||
521CB1002C493DB80085BDF8 /* JWPlayerKit in Frameworks */ = {isa = PBXBuildFile; productRef = 521CB0FF2C493DB80085BDF8 /* JWPlayerKit */; };
|
||||
522242662BFC74380085C632 /* MyListVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 522242632BFC74380085C632 /* MyListVC.swift */; };
|
||||
@@ -33,6 +35,7 @@
|
||||
523ED2812BDA2BC900CFED02 /* WOKAUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 523ED2802BDA2BC900CFED02 /* WOKAUITestsLaunchTests.swift */; };
|
||||
5242FE592C24203E0086A86D /* WebSeriesSeasonVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5242FE582C24203E0086A86D /* WebSeriesSeasonVC.swift */; };
|
||||
5242FE5B2C24317A0086A86D /* WebSeriesSeasonVM.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5242FE5A2C24317A0086A86D /* WebSeriesSeasonVM.swift */; };
|
||||
524612032C64E89E001DA728 /* MyListViewAllVM.swift in Sources */ = {isa = PBXBuildFile; fileRef = 524612022C64E89E001DA728 /* MyListViewAllVM.swift */; };
|
||||
524C422B2C04781B0016A11C /* ThemeTwoVM.swift in Sources */ = {isa = PBXBuildFile; fileRef = 524C422A2C04781B0016A11C /* ThemeTwoVM.swift */; };
|
||||
524C42312C0499560016A11C /* NotificationCenterReloads.swift in Sources */ = {isa = PBXBuildFile; fileRef = 524C42302C0499560016A11C /* NotificationCenterReloads.swift */; };
|
||||
524C42332C049D590016A11C /* CustomizableSegmentControl.swift in Sources */ = {isa = PBXBuildFile; fileRef = 524C42322C049D590016A11C /* CustomizableSegmentControl.swift */; };
|
||||
@@ -148,6 +151,11 @@
|
||||
52ACC1302C639DBA00791528 /* MyOrderCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52ACC12E2C639DBA00791528 /* MyOrderCell.swift */; };
|
||||
52ACC1312C639DBA00791528 /* MyOrderCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 52ACC12F2C639DBA00791528 /* MyOrderCell.xib */; };
|
||||
52ACC1332C639F3800791528 /* OrderListingDM.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52ACC1322C639F3800791528 /* OrderListingDM.swift */; };
|
||||
52ACC1352C64C89900791528 /* MyOrderDetailsVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52ACC1342C64C89900791528 /* MyOrderDetailsVC.swift */; };
|
||||
52ACC1372C64C96C00791528 /* OrderDetailsDM.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52ACC1362C64C96C00791528 /* OrderDetailsDM.swift */; };
|
||||
52ACC13A2C64CD0100791528 /* MyOrderDetailsCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52ACC1382C64CD0100791528 /* MyOrderDetailsCell.swift */; };
|
||||
52ACC13B2C64CD0100791528 /* MyOrderDetailsCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 52ACC1392C64CD0100791528 /* MyOrderDetailsCell.xib */; };
|
||||
52ACC13D2C64DFC300791528 /* MyListViewAllVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52ACC13C2C64DFC300791528 /* MyListViewAllVC.swift */; };
|
||||
52AECA802C08BCB6004A7579 /* PlayerVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52AECA7F2C08BCB6004A7579 /* PlayerVC.swift */; };
|
||||
52AF71EE2C36AD3100BC5972 /* GamesListVM.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52AF71ED2C36AD3100BC5972 /* GamesListVM.swift */; };
|
||||
52AF71F02C36B29A00BC5972 /* GamesListDM.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52AF71EF2C36B29A00BC5972 /* GamesListDM.swift */; };
|
||||
@@ -359,6 +367,8 @@
|
||||
3B045136DB6D1DB0D38BD128 /* Pods_WOKA.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WOKA.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
5202AAFD2BDF90590043B7BD /* TextFieldImage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TextFieldImage.swift; sourceTree = "<group>"; };
|
||||
5202AB002BDFA7900043B7BD /* EmailValidation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmailValidation.swift; sourceTree = "<group>"; };
|
||||
520346942C64E29A00D0BD20 /* MyListViewAllCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyListViewAllCell.swift; sourceTree = "<group>"; };
|
||||
520346952C64E29A00D0BD20 /* MyListViewAllCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MyListViewAllCell.xib; sourceTree = "<group>"; };
|
||||
520B6E3E2C0751E90091C478 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Theme.strings; sourceTree = "<group>"; };
|
||||
520B6E402C0751EF0091C478 /* hi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = hi; path = hi.lproj/Theme.strings; sourceTree = "<group>"; };
|
||||
5219C2C12C086D9B00A1DF4D /* DataTypeConversion.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataTypeConversion.swift; sourceTree = "<group>"; };
|
||||
@@ -387,6 +397,7 @@
|
||||
523ED2802BDA2BC900CFED02 /* WOKAUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WOKAUITestsLaunchTests.swift; sourceTree = "<group>"; };
|
||||
5242FE582C24203E0086A86D /* WebSeriesSeasonVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebSeriesSeasonVC.swift; sourceTree = "<group>"; };
|
||||
5242FE5A2C24317A0086A86D /* WebSeriesSeasonVM.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebSeriesSeasonVM.swift; sourceTree = "<group>"; };
|
||||
524612022C64E89E001DA728 /* MyListViewAllVM.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyListViewAllVM.swift; sourceTree = "<group>"; };
|
||||
524C422A2C04781B0016A11C /* ThemeTwoVM.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThemeTwoVM.swift; sourceTree = "<group>"; };
|
||||
524C42302C0499560016A11C /* NotificationCenterReloads.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationCenterReloads.swift; sourceTree = "<group>"; };
|
||||
524C42322C049D590016A11C /* CustomizableSegmentControl.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomizableSegmentControl.swift; sourceTree = "<group>"; };
|
||||
@@ -504,6 +515,11 @@
|
||||
52ACC12E2C639DBA00791528 /* MyOrderCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyOrderCell.swift; sourceTree = "<group>"; };
|
||||
52ACC12F2C639DBA00791528 /* MyOrderCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MyOrderCell.xib; sourceTree = "<group>"; };
|
||||
52ACC1322C639F3800791528 /* OrderListingDM.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrderListingDM.swift; sourceTree = "<group>"; };
|
||||
52ACC1342C64C89900791528 /* MyOrderDetailsVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyOrderDetailsVC.swift; sourceTree = "<group>"; };
|
||||
52ACC1362C64C96C00791528 /* OrderDetailsDM.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrderDetailsDM.swift; sourceTree = "<group>"; };
|
||||
52ACC1382C64CD0100791528 /* MyOrderDetailsCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyOrderDetailsCell.swift; sourceTree = "<group>"; };
|
||||
52ACC1392C64CD0100791528 /* MyOrderDetailsCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MyOrderDetailsCell.xib; sourceTree = "<group>"; };
|
||||
52ACC13C2C64DFC300791528 /* MyListViewAllVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyListViewAllVC.swift; sourceTree = "<group>"; };
|
||||
52AECA7F2C08BCB6004A7579 /* PlayerVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlayerVC.swift; sourceTree = "<group>"; };
|
||||
52AF71ED2C36AD3100BC5972 /* GamesListVM.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GamesListVM.swift; sourceTree = "<group>"; };
|
||||
52AF71EF2C36B29A00BC5972 /* GamesListDM.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GamesListDM.swift; sourceTree = "<group>"; };
|
||||
@@ -786,6 +802,7 @@
|
||||
9CA7C6BF2C1093E500D73742 /* ProfileVC.swift */,
|
||||
9C8C4FAD2C1315410017DD3B /* WebViewVC.swift */,
|
||||
52BC3BEB2C16DF9F002FACA6 /* MyOrdersVC.swift */,
|
||||
52ACC1342C64C89900791528 /* MyOrderDetailsVC.swift */,
|
||||
);
|
||||
path = Controller;
|
||||
sourceTree = "<group>";
|
||||
@@ -795,6 +812,7 @@
|
||||
children = (
|
||||
52BC3BE72C0E04A9002FACA6 /* FaqListDM.swift */,
|
||||
52ACC1322C639F3800791528 /* OrderListingDM.swift */,
|
||||
52ACC1362C64C96C00791528 /* OrderDetailsDM.swift */,
|
||||
);
|
||||
path = Model;
|
||||
sourceTree = "<group>";
|
||||
@@ -806,6 +824,8 @@
|
||||
52BC3BE42C0E0326002FACA6 /* FaqCell.xib */,
|
||||
52ACC12E2C639DBA00791528 /* MyOrderCell.swift */,
|
||||
52ACC12F2C639DBA00791528 /* MyOrderCell.xib */,
|
||||
52ACC1382C64CD0100791528 /* MyOrderDetailsCell.swift */,
|
||||
52ACC1392C64CD0100791528 /* MyOrderDetailsCell.xib */,
|
||||
);
|
||||
path = View;
|
||||
sourceTree = "<group>";
|
||||
@@ -1010,6 +1030,7 @@
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
52A981CF2C1AFEE8000E0BEC /* MyListVM.swift */,
|
||||
524612022C64E89E001DA728 /* MyListViewAllVM.swift */,
|
||||
);
|
||||
path = ViewModel;
|
||||
sourceTree = "<group>";
|
||||
@@ -1020,6 +1041,7 @@
|
||||
9C535DBF2C00B36000DA6DCD /* HomeVC.swift */,
|
||||
525327CF2BFCBC4A00F64283 /* ExploreWokaVC.swift */,
|
||||
522242632BFC74380085C632 /* MyListVC.swift */,
|
||||
52ACC13C2C64DFC300791528 /* MyListViewAllVC.swift */,
|
||||
);
|
||||
path = Controller;
|
||||
sourceTree = "<group>";
|
||||
@@ -1615,6 +1637,8 @@
|
||||
children = (
|
||||
52A981D52C1B0E27000E0BEC /* FavouriteCell.swift */,
|
||||
52A981D62C1B0E27000E0BEC /* FavouriteCell.xib */,
|
||||
520346942C64E29A00D0BD20 /* MyListViewAllCell.swift */,
|
||||
520346952C64E29A00D0BD20 /* MyListViewAllCell.xib */,
|
||||
);
|
||||
path = View;
|
||||
sourceTree = "<group>";
|
||||
@@ -2000,6 +2024,7 @@
|
||||
files = (
|
||||
528E5F232C24660F00E33E4E /* SeasonCategoryCell.xib in Resources */,
|
||||
9C27E1732BDB86B600EC1DA9 /* OnBoardCell.xib in Resources */,
|
||||
520346962C64E29A00D0BD20 /* MyListViewAllCell.xib in Resources */,
|
||||
522A931A2C0DE8CC0098FE49 /* SideBarNav.storyboard in Resources */,
|
||||
9CDCE1452BDB9B9A003FEF11 /* OnBoardMainSound.m4a in Resources */,
|
||||
9C56E84B2BDBF03F00E4CA14 /* AuthenticationSB.storyboard in Resources */,
|
||||
@@ -2011,6 +2036,7 @@
|
||||
527AC6FE2C173A5100434FB7 /* SongListCell.xib in Resources */,
|
||||
52BBFCBA2C52782600F7D0D1 /* AddressCell.xib in Resources */,
|
||||
523ED26A2BDA2BC900CFED02 /* Base in Resources */,
|
||||
52ACC13B2C64CD0100791528 /* MyOrderDetailsCell.xib in Resources */,
|
||||
52C8B05B2BDA5924003B51D0 /* WokaSplashSound.m4a in Resources */,
|
||||
525861D72C4FD38D00C33C79 /* CartPaymentOptionsCell.xib in Resources */,
|
||||
52D6A24B2C21B43300145908 /* WebSeriesCell.xib in Resources */,
|
||||
@@ -2151,6 +2177,7 @@
|
||||
525953D42BE8B2DF00191286 /* UIApplication.swift in Sources */,
|
||||
52C8EC802C358E75002DC35C /* AudioBookDetailsVC.swift in Sources */,
|
||||
52CC38C32BDF812F00B74C3E /* LocalisedElements.swift in Sources */,
|
||||
524612032C64E89E001DA728 /* MyListViewAllVM.swift in Sources */,
|
||||
527A2BD02C57A2AE0080DF9B /* PaymentWebViewVC.swift in Sources */,
|
||||
52A6DCCC2C4F929B00F63C51 /* CartListCell.swift in Sources */,
|
||||
5259545E2BEBBA1A00191286 /* LoadingIndicatorImageView.swift in Sources */,
|
||||
@@ -2230,6 +2257,7 @@
|
||||
9CBCB2A32BE50C95007D7934 /* ResetPassUserNameVC.swift in Sources */,
|
||||
52A3F6A52BECBA8D0000BB0B /* LinkedChildDM.swift in Sources */,
|
||||
52B8D4DE2C04A25E00ED65F3 /* SideMenuController.swift in Sources */,
|
||||
52ACC13D2C64DFC300791528 /* MyListViewAllVC.swift in Sources */,
|
||||
9CBE1B402C0F37B300CA6E61 /* DPDKeyboardListener.swift in Sources */,
|
||||
52A3F6AB2BECBF550000BB0B /* LinkedChildVC.swift in Sources */,
|
||||
52FDBA7B2BFF2712009D7AC7 /* AuthFuncTimeHandling.swift in Sources */,
|
||||
@@ -2238,6 +2266,7 @@
|
||||
9CBCB2A52BE50D49007D7934 /* NewPasswordVC.swift in Sources */,
|
||||
52C8D8D42C2D9F3400CA72A6 /* LikeFavCommonFunc.swift in Sources */,
|
||||
9CBCB29F2BE4E13A007D7934 /* ValidatorClass.swift in Sources */,
|
||||
52ACC1372C64C96C00791528 /* OrderDetailsDM.swift in Sources */,
|
||||
52A6DCBC2C4EA46400F63C51 /* ShopProductsCell.swift in Sources */,
|
||||
528BEF602C2C372900FFDAB8 /* ContinueWatchingVC.swift in Sources */,
|
||||
9CBCB29B2BE4D614007D7934 /* LoginVC.swift in Sources */,
|
||||
@@ -2274,7 +2303,9 @@
|
||||
525954172BE8CAD300191286 /* NetworkManager.swift in Sources */,
|
||||
52B8D4DD2C04A25E00ED65F3 /* UIViewController+SideMenu.swift in Sources */,
|
||||
525954292BEA079500191286 /* UserEmailVerifyDM.swift in Sources */,
|
||||
52ACC1352C64C89900791528 /* MyOrderDetailsVC.swift in Sources */,
|
||||
522D655E2C1ACCF40021E505 /* UserNotificationDM.swift in Sources */,
|
||||
52ACC13A2C64CD0100791528 /* MyOrderDetailsCell.swift in Sources */,
|
||||
9C1C69FC2C106C240035B2C7 /* ContactSupportVM.swift in Sources */,
|
||||
52AF71F22C36B77B00BC5972 /* GamesDetailVC.swift in Sources */,
|
||||
525861D42C4FCCB500C33C79 /* CartPaymentOptionsVM.swift in Sources */,
|
||||
@@ -2328,6 +2359,7 @@
|
||||
52A6DCB62C4E748100F63C51 /* ShopSubCategoryDM.swift in Sources */,
|
||||
52BBFCB92C52782600F7D0D1 /* AddressCell.swift in Sources */,
|
||||
9C27E1652BDB6FBC00EC1DA9 /* StoryBoardID.swift in Sources */,
|
||||
520346972C64E29A00D0BD20 /* MyListViewAllCell.swift in Sources */,
|
||||
9CB3D08B2C37BBA50062869D /* KaraokeListingVC.swift in Sources */,
|
||||
52FDBA782BFF23F4009D7AC7 /* TimePeriod.swift in Sources */,
|
||||
527AC6FA2C17387300434FB7 /* SongBlogDM.swift in Sources */,
|
||||
@@ -2600,7 +2632,7 @@
|
||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||
CODE_SIGN_ENTITLEMENTS = WOKA/WOKA.entitlements;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
CURRENT_PROJECT_VERSION = 3;
|
||||
DEVELOPMENT_TEAM = 4S9A74ZB6H;
|
||||
ENABLE_USER_SCRIPT_SANDBOXING = NO;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
@@ -2618,7 +2650,7 @@
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 1.0;
|
||||
MARKETING_VERSION = 25.1.6;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.app.woka;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
||||
@@ -2639,7 +2671,7 @@
|
||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||
CODE_SIGN_ENTITLEMENTS = WOKA/WOKA.entitlements;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
CURRENT_PROJECT_VERSION = 3;
|
||||
DEVELOPMENT_TEAM = 4S9A74ZB6H;
|
||||
ENABLE_USER_SCRIPT_SANDBOXING = NO;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
@@ -2657,7 +2689,7 @@
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 1.0;
|
||||
MARKETING_VERSION = 25.1.6;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.app.woka;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
||||
|
||||
@@ -25,8 +25,8 @@ class LoginVC: UIViewController {
|
||||
vm.vc = self
|
||||
vm.initView()
|
||||
|
||||
self.userNameTF.text = "child1"
|
||||
self.passwordTF.text = "Admin@123"
|
||||
// self.userNameTF.text = "child1"
|
||||
// self.passwordTF.text = "Admin@123"
|
||||
}
|
||||
|
||||
@IBAction func loginBtnTapped(_ sender: LocalisedElementsButton) {
|
||||
|
||||
@@ -30,6 +30,7 @@ extension K{
|
||||
struct SideBarNav{
|
||||
static let faqCell = "FaqCell"
|
||||
static let myOrderCell = "MyOrderCell"
|
||||
static let myOrderDetailsCell = "MyOrderDetailsCell"
|
||||
}
|
||||
|
||||
struct Home{
|
||||
@@ -37,6 +38,7 @@ extension K{
|
||||
static let songListCell = "SongListCell"
|
||||
static let userNotificationCell = "UserNotificationCell"
|
||||
static let favouriteCell = "FavouriteCell"
|
||||
static let myListViewAllCell = "MyListViewAllCell"
|
||||
}
|
||||
|
||||
struct WebSeries{
|
||||
|
||||
@@ -32,6 +32,7 @@ extension K{
|
||||
struct Home{
|
||||
static let homeVC = "HomeVC"
|
||||
static let userNotificationVC = "UserNotificationVC"
|
||||
static let MyListViewAllVC = "MyListViewAllVC"
|
||||
}
|
||||
|
||||
struct CustomAlerts{
|
||||
@@ -56,6 +57,7 @@ extension K{
|
||||
static let profileVC = "ProfileVC"
|
||||
static let webViewVC = "WebViewVC"
|
||||
static let myOrdersVC = "MyOrdersVC"
|
||||
static let myOrderDetailsVC = "MyOrderDetailsVC"
|
||||
}
|
||||
|
||||
// MARK: - Web Series
|
||||
|
||||
@@ -257,7 +257,9 @@ enum DateFormats: String, CaseIterable {
|
||||
case d_MMM__yyyy = "d MMM, yyyy" // 28 Nov, 2022
|
||||
case MMM_d_yyyy = "MMM d, yyyy" // Nov 28, 2022
|
||||
case MMMM_d = "MMMM, d" // March 16
|
||||
|
||||
|
||||
case d__MM = "d/MM"
|
||||
|
||||
// Times
|
||||
case HH_mm = "HH:mm"
|
||||
case HH_mm_ss = "HH:mm:ss"
|
||||
|
||||
@@ -31,6 +31,8 @@ class MyListVC: UIViewController{
|
||||
@IBOutlet weak var guestLoginView: UIView!
|
||||
@IBOutlet weak var guestLoginStack: UIStackView!
|
||||
|
||||
@IBOutlet weak var karaokeViewBtn: LocalisedElementsButton!
|
||||
|
||||
var vm = MyListVM()
|
||||
|
||||
deinit{
|
||||
@@ -93,6 +95,9 @@ class MyListVC: UIViewController{
|
||||
@IBAction func freeSignIn(_ sender: LocalisedElementsButton) {
|
||||
UIApplication.setRootView(LoginNavVC.instantiate(from: .AuthenticationSB))
|
||||
}
|
||||
|
||||
@IBAction func viewAllBtnTapped(_ sender: UIButton) {
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - CollectionView Delegate
|
||||
|
||||
40
WOKA/Home/Controller/MyListViewAllVC.swift
Normal file
40
WOKA/Home/Controller/MyListViewAllVC.swift
Normal file
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// MyListViewAllVC.swift
|
||||
// WOKA
|
||||
//
|
||||
// Created by MacBook Pro on 08/08/24.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class MyListViewAllVC: UIViewController {
|
||||
|
||||
@IBOutlet weak var tableView: UITableView!
|
||||
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
setupCell()
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
||||
let cell = tableView.dequeueReusableCell(withIdentifier: K.CellIdentifier.Home.myListViewAllCell) as! MyListViewAllCell
|
||||
|
||||
return cell
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,9 +33,6 @@
|
||||
<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"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="contentSegueID" value="SideMenuContent"/>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="contentSegueID" value="SideMenuContent"/>
|
||||
@@ -884,6 +881,42 @@
|
||||
</objects>
|
||||
<point key="canvasLocation" x="3004" y="978"/>
|
||||
</scene>
|
||||
<!--My List View AllVC-->
|
||||
<scene sceneID="X00-2f-WW8">
|
||||
<objects>
|
||||
<viewController storyboardIdentifier="MyListViewAllVC" id="4Hd-On-nDp" customClass="MyListViewAllVC" customModule="WOKA" customModuleProvider="target" sceneMemberID="viewController">
|
||||
<view key="view" contentMode="scaleToFill" id="of6-Su-bMU">
|
||||
<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="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">
|
||||
<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>
|
||||
</subviews>
|
||||
<viewLayoutGuide key="safeArea" id="RUi-Wa-LCY"/>
|
||||
<color key="backgroundColor" red="0.82745098039215681" green="0.93725490196078431" blue="0.97254901960784312" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="bottom" secondItem="lws-zb-kGG" secondAttribute="bottom" id="GEe-p1-saO"/>
|
||||
<constraint firstItem="19V-eU-c5X" firstAttribute="bottom" secondItem="RUi-Wa-LCY" secondAttribute="bottom" id="Yig-Wg-yNm"/>
|
||||
<constraint firstItem="19V-eU-c5X" firstAttribute="leading" secondItem="RUi-Wa-LCY" secondAttribute="leading" id="aZO-vF-FAH"/>
|
||||
<constraint firstItem="lws-zb-kGG" firstAttribute="leading" secondItem="of6-Su-bMU" secondAttribute="leading" id="hii-NV-BJu"/>
|
||||
<constraint firstItem="19V-eU-c5X" firstAttribute="top" secondItem="RUi-Wa-LCY" secondAttribute="top" id="tuE-vT-SkZ"/>
|
||||
<constraint firstItem="RUi-Wa-LCY" firstAttribute="trailing" secondItem="19V-eU-c5X" secondAttribute="trailing" id="uAZ-dh-098"/>
|
||||
<constraint firstItem="RUi-Wa-LCY" firstAttribute="trailing" secondItem="lws-zb-kGG" secondAttribute="trailing" id="uOv-Wm-a4n"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<connections>
|
||||
<outlet property="tableView" destination="19V-eU-c5X" id="1dg-6e-wcU"/>
|
||||
</connections>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="xf5-ND-CM5" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="3893.0232558139533" y="978.54077253218895"/>
|
||||
</scene>
|
||||
<!--Tab BarVC-->
|
||||
<scene sceneID="rGl-mC-J6X">
|
||||
<objects>
|
||||
@@ -973,7 +1006,7 @@
|
||||
<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="1338.3333333333333"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="430" height="1347.6666666666667"/>
|
||||
<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"/>
|
||||
@@ -1069,22 +1102,48 @@
|
||||
</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="251.66666666666674"/>
|
||||
<rect key="frame" x="0.0" y="795" width="430" height="261"/>
|
||||
<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="21.666666666666668"/>
|
||||
<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="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="415" height="21.666666666666668"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="18"/>
|
||||
<color key="textColor" name="TextDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" distribution="equalSpacing" translatesAutoresizingMaskIntoConstraints="NO" id="geP-gI-gZd">
|
||||
<rect key="frame" x="15" y="0.0" width="395" height="31"/>
|
||||
<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="0.0" y="0.0" width="395" 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="MNq-YB-EUG" 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="bma-Om-NPP"/>
|
||||
</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>
|
||||
<connections>
|
||||
<action selector="viewAllBtnTapped:" destination="55l-Gk-Npk" eventType="touchUpInside" id="pAS-gT-xTU"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
</stackView>
|
||||
</subviews>
|
||||
<edgeInsets key="layoutMargins" top="0.0" left="15" bottom="0.0" right="0.0"/>
|
||||
<edgeInsets key="layoutMargins" top="0.0" left="15" bottom="0.0" right="20"/>
|
||||
</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="21.666666666666629" 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="cJI-sp-1u2"/>
|
||||
@@ -1100,7 +1159,7 @@
|
||||
</subviews>
|
||||
</stackView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="Cgp-Ok-Imj">
|
||||
<rect key="frame" x="0.0" y="1056.6666666666667" width="430" height="251.66666666666674"/>
|
||||
<rect key="frame" x="0.0" y="1066" 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"/>
|
||||
@@ -1115,7 +1174,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="21.666666666666515" 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="vnV-51-p2Q"/>
|
||||
@@ -1131,7 +1190,7 @@
|
||||
</subviews>
|
||||
</stackView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="F2F-sK-9oY">
|
||||
<rect key="frame" x="0.0" y="1318.3333333333333" width="430" height="20"/>
|
||||
<rect key="frame" x="0.0" y="1327.6666666666667" 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"/>
|
||||
@@ -1298,6 +1357,7 @@
|
||||
<outlet property="guestLoginView" destination="ygH-wj-cLk" id="XFr-0L-L0a"/>
|
||||
<outlet property="karaokeCV" destination="Grz-ok-w2U" id="vAr-XE-2Ne"/>
|
||||
<outlet property="karaokeStack" destination="jE2-WP-tD4" id="azr-yq-sDA"/>
|
||||
<outlet property="karaokeViewBtn" destination="MNq-YB-EUG" id="nhX-tu-YWQ"/>
|
||||
<outlet property="noDataStack" destination="QHo-nZ-miK" id="mA1-FT-iQl"/>
|
||||
<outlet property="scrollView" destination="SyC-Qw-kzE" id="0xd-Wb-TU1"/>
|
||||
<outlet property="webSeriesCV" destination="6Y6-vJ-OYT" id="FRf-D2-kxM"/>
|
||||
@@ -1381,6 +1441,9 @@
|
||||
<image name="arrowtriangle.down.fill" catalog="system" width="128" height="120"/>
|
||||
<image name="xmark" catalog="system" width="128" height="113"/>
|
||||
<image name="xmark.circle" catalog="system" width="128" height="123"/>
|
||||
<namedColor name="ImageDarkBlue">
|
||||
<color red="0.035000000149011612" green="0.0" blue="0.36500000953674316" 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>
|
||||
|
||||
75
WOKA/Home/View/MyListViewAllCell.swift
Normal file
75
WOKA/Home/View/MyListViewAllCell.swift
Normal file
@@ -0,0 +1,75 @@
|
||||
//
|
||||
// MyListViewAllCell.swift
|
||||
// WOKA
|
||||
//
|
||||
// Created by MacBook Pro on 08/08/24.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class MyListViewAllCell: UITableViewCell {
|
||||
|
||||
@IBOutlet weak var cellImage: UIImageView!
|
||||
@IBOutlet weak var cellTitle: UILabel!
|
||||
@IBOutlet weak var likeBtn: UIButton!
|
||||
@IBOutlet weak var favBtnn: UIButton!
|
||||
@IBOutlet weak var totalLikes: UILabel!
|
||||
|
||||
typealias btnTappedBlock = ( _ from : FavCellCLick) -> Void // 0 - plus 1 - minus
|
||||
var btnTapped : btnTappedBlock!
|
||||
|
||||
override func awakeFromNib() {
|
||||
super.awakeFromNib()
|
||||
// Initialization code
|
||||
}
|
||||
|
||||
override func setSelected(_ selected: Bool, animated: Bool) {
|
||||
super.setSelected(selected, animated: animated)
|
||||
|
||||
// Configure the view for the selected state
|
||||
}
|
||||
|
||||
@IBAction func favouriteBtnTapped(_ sender: UIButton) {
|
||||
if btnTapped != nil {
|
||||
btnTapped( .favourite)
|
||||
}
|
||||
}
|
||||
|
||||
@IBAction func likeBtnTapped(_ sender: UIButton) {
|
||||
if btnTapped != nil {
|
||||
btnTapped( .liked)
|
||||
}
|
||||
}
|
||||
|
||||
func setKaraokeData(data : KaraokeListingDM.KaraokeDatum){
|
||||
//heart.fill , heart , hand.thumbsup.fill , hand.thumbsup
|
||||
if AuthFunc.shareInstance.getDefaultLanguage() == .english{
|
||||
cellTitle.text = data.contentMoreDetails?.filter({$0.languageMasterID == 1}).first?.title
|
||||
}else{
|
||||
cellTitle.text = data.contentMoreDetails?.filter({$0.languageMasterID == 2}).first?.title
|
||||
}
|
||||
totalLikes.text = data.likesCount?.toString() ?? "0"
|
||||
if let url = data.thumbnailPath{
|
||||
cellImage.imageURL(url)
|
||||
}
|
||||
|
||||
if let favourite = data.markAsFavourite{
|
||||
switch favourite{
|
||||
case true:
|
||||
favBtnn.setImage(UIImage(named: "FavouriteAdd"), for: .normal)
|
||||
case false:
|
||||
favBtnn.setImage(UIImage(named: "FavouriteRemove"), for: .normal)
|
||||
}
|
||||
}
|
||||
|
||||
if let like = data.isLiked{
|
||||
switch like{
|
||||
case true:
|
||||
likeBtn.setImage(UIImage(named: "LikeAdd"), for: .normal)
|
||||
case false:
|
||||
likeBtn.setImage(UIImage(named: "LikeRemove"), for: .normal)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
123
WOKA/Home/View/MyListViewAllCell.xib
Normal file
123
WOKA/Home/View/MyListViewAllCell.xib
Normal file
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
||||
<device id="retina6_12" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
|
||||
<capability name="Named colors" minToolsVersion="9.0"/>
|
||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<customFonts key="customFonts">
|
||||
<array key="Exo2-Bold.ttf">
|
||||
<string>Exo2-Bold</string>
|
||||
</array>
|
||||
</customFonts>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<tableViewCell contentMode="scaleToFill" selectionStyle="default" 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">
|
||||
<rect key="frame" x="0.0" y="0.0" width="472" height="236"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" axis="vertical" spacing="3" translatesAutoresizingMaskIntoConstraints="NO" id="aJq-Gd-t3S">
|
||||
<rect key="frame" x="10" y="10" width="452" height="216"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="XCC-EB-364">
|
||||
<rect key="frame" x="10" y="10" width="432" height="163"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<integer key="value" value="5"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</imageView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" distribution="equalSpacing" alignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="lIE-Dk-nwf">
|
||||
<rect key="frame" x="10" y="176" width="432" 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="cU1-N6-K7n">
|
||||
<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" spacing="4" translatesAutoresizingMaskIntoConstraints="NO" id="A0I-5C-IVv">
|
||||
<rect key="frame" x="351" y="0.0" width="81" height="35"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ghl-pn-MhV">
|
||||
<rect key="frame" x="0.0" y="0.0" width="42" height="35"/>
|
||||
<subviews>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Q69-kf-j62">
|
||||
<rect key="frame" x="0.0" y="0.0" width="35" height="35"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" secondItem="Q69-kf-j62" secondAttribute="height" multiplier="1:1" id="Ns6-yn-HOa"/>
|
||||
</constraints>
|
||||
<color key="tintColor" name="ImageDarkBlue"/>
|
||||
<inset key="imageEdgeInsets" minX="5" minY="5" maxX="5" maxY="5"/>
|
||||
<state key="normal" image="LikeRemove"/>
|
||||
</button>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GgZ-Se-yNw">
|
||||
<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>
|
||||
</subviews>
|
||||
</stackView>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="QM5-Ju-7Lu">
|
||||
<rect key="frame" x="46" y="0.0" width="35" height="35"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" secondItem="QM5-Ju-7Lu" secondAttribute="height" multiplier="1:1" id="W0Z-YP-aEV"/>
|
||||
</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>
|
||||
</button>
|
||||
</subviews>
|
||||
</stackView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="35" id="8PB-ir-tVf"/>
|
||||
</constraints>
|
||||
</stackView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<edgeInsets key="layoutMargins" top="10" left="10" bottom="5" right="10"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<integer key="value" value="5"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</stackView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="aJq-Gd-t3S" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="10" id="4t3-zC-mf1"/>
|
||||
<constraint firstAttribute="bottom" secondItem="aJq-Gd-t3S" secondAttribute="bottom" constant="10" id="Cht-7e-oT0"/>
|
||||
<constraint firstItem="aJq-Gd-t3S" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="10" id="e5Y-Ph-8yw"/>
|
||||
<constraint firstAttribute="trailing" secondItem="aJq-Gd-t3S" secondAttribute="trailing" constant="10" id="vzE-dk-UFl"/>
|
||||
</constraints>
|
||||
</tableViewCellContentView>
|
||||
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
|
||||
<connections>
|
||||
<outlet property="cellImage" destination="XCC-EB-364" id="umR-mc-jgp"/>
|
||||
<outlet property="cellTitle" destination="cU1-N6-K7n" id="lHl-Ip-TxG"/>
|
||||
<outlet property="favBtnn" destination="QM5-Ju-7Lu" id="xoN-7O-L2d"/>
|
||||
<outlet property="likeBtn" destination="Q69-kf-j62" id="t91-ik-Yxi"/>
|
||||
<outlet property="totalLikes" destination="GgZ-Se-yNw" id="Rtu-Aa-4zb"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="254.96183206106869" y="87.323943661971839"/>
|
||||
</tableViewCell>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="FavouriteRemove" width="42.666667938232422" height="42.666667938232422"/>
|
||||
<image name="LikeRemove" width="42.666667938232422" height="42.666667938232422"/>
|
||||
<namedColor name="ImageDarkBlue">
|
||||
<color red="0.035000000149011612" green="0.0" blue="0.36500000953674316" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</namedColor>
|
||||
</resources>
|
||||
</document>
|
||||
@@ -38,6 +38,8 @@ class MyListVM{
|
||||
setupCell()
|
||||
Utilities.startProgressHUD()
|
||||
getFavouriteListing()
|
||||
|
||||
vc.karaokeViewBtn.roundCorner()
|
||||
}
|
||||
|
||||
@objc func viewPush(notification: Notification){
|
||||
@@ -119,7 +121,8 @@ class MyListVM{
|
||||
|
||||
let headers : HTTPHeaders = ["Accept-Language" : AuthFunc.shareInstance.languageSelected == .english ? "English" : "Hindi",
|
||||
"access-token": AuthFunc.shareInstance.getAccessToken()]
|
||||
NetworkManager.shareInstance.apiRequest(url: APIEndPoints.Home.favourite_listing, method: .post, headers: headers) { [weak self](result : Result<BaseResponseModel<FavouriteListingDM>, NetworkManager.APIError>) in
|
||||
let params : Parameters = ["api_version" : "v2"]
|
||||
NetworkManager.shareInstance.apiRequest(url: APIEndPoints.Home.favourite_listing, method: .post,parameters : params, headers: headers) { [weak self](result : Result<BaseResponseModel<FavouriteListingDM>, NetworkManager.APIError>) in
|
||||
switch result{
|
||||
case .success(let data):
|
||||
guard let self else{return}
|
||||
@@ -202,6 +205,7 @@ class MyListVM{
|
||||
reloadCollections()
|
||||
feedbackGenerator.impactOccurred()
|
||||
checkNil()
|
||||
checkViewAll()
|
||||
default:
|
||||
break
|
||||
}
|
||||
@@ -218,6 +222,19 @@ class MyListVM{
|
||||
}
|
||||
}
|
||||
|
||||
func checkViewAll(){
|
||||
if let favListing = MyListDataTemp.shareInstance.favListingData{
|
||||
|
||||
if let karaokeCount = favListing.singKaraokeData?.count, karaokeCount >= 3 {
|
||||
vc.karaokeViewBtn.isHidden = false
|
||||
}else{
|
||||
vc.karaokeViewBtn.isHidden = true
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: - Like , unlike
|
||||
|
||||
func likePost(postID : Int, postType : Int, index : Int , onCompletion : @escaping (Bool) -> Void){
|
||||
|
||||
108
WOKA/Home/ViewModel/MyListViewAllVM.swift
Normal file
108
WOKA/Home/ViewModel/MyListViewAllVM.swift
Normal file
@@ -0,0 +1,108 @@
|
||||
//
|
||||
// MyListViewAllVM.swift
|
||||
// WOKA
|
||||
//
|
||||
// Created by MacBook Pro on 08/08/24.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import Alamofire
|
||||
|
||||
class MyListViewAllVM{
|
||||
|
||||
weak var vc : MyListViewAllVC!
|
||||
var moduleType = Int()
|
||||
var postType = Int()
|
||||
var pageNo = 0
|
||||
|
||||
var favListingData : FavouriteListingDM.ResultData?
|
||||
var webSeriesHindi = [FavouriteListingDM.ResultData.ShowDatum]()
|
||||
|
||||
func initView(){
|
||||
getFavouriteListing()
|
||||
}
|
||||
|
||||
// MARK: - Get Favourite Listing
|
||||
|
||||
func getFavouriteListing(){
|
||||
|
||||
let headers : HTTPHeaders = ["Accept-Language" : AuthFunc.shareInstance.languageSelected == .english ? "English" : "Hindi",
|
||||
"access-token": AuthFunc.shareInstance.getAccessToken()]
|
||||
|
||||
let params : Parameters = ["post_type" : postType,
|
||||
"api_version" : "v2",
|
||||
"start" : pageNo,
|
||||
"limit" : "10"]
|
||||
|
||||
NetworkManager.shareInstance.apiRequest(url: APIEndPoints.Home.favourite_listing, method: .post,parameters : params, headers: headers) { [weak self](result : Result<BaseResponseModel<FavouriteListingDM>, NetworkManager.APIError>) in
|
||||
switch result{
|
||||
case .success(let data):
|
||||
guard let self else{return}
|
||||
switch data.success{
|
||||
case 0:
|
||||
Utilities.dismissProgressHUD()
|
||||
self.vc.toast(msg: data.message ?? "Unrecognised error" , time: 2)
|
||||
case 1:
|
||||
Utilities.dismissProgressHUD()
|
||||
guard let data = data.data?.result else{return}
|
||||
|
||||
if var hindiData = favListingData?.showData{
|
||||
|
||||
/*
|
||||
Taking out the hindi series , 1-> English , 18-> Hindi
|
||||
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")
|
||||
}.map { element -> FavouriteListingDM.ResultData.ShowDatum in
|
||||
var modifiedElement = element
|
||||
modifiedElement.bookmarkCategoryIDS = "18"
|
||||
modifiedElement.categoryMasterID = "18"
|
||||
return modifiedElement
|
||||
}
|
||||
|
||||
if let data = favListingData?.showData{
|
||||
var indicesToRemove = [Int]()
|
||||
|
||||
// Deleting the hindi series from main (those with category ID "18")
|
||||
for (index, element) in data.enumerated() {
|
||||
if let bookMarkCatID = element.bookmarkCategoryIDS?.components(separatedBy: ","){
|
||||
if bookMarkCatID.count > 1{ // means multiple language
|
||||
/*
|
||||
if its greater than one , its for sure we have extracted the hindi episode
|
||||
*/
|
||||
hindiData[index].bookmarkCategoryIDS = "1"
|
||||
}else{ // means single language
|
||||
if bookMarkCatID.first == "18"{
|
||||
indicesToRemove.append(index)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Remove items in reverse order to avoid index shifting issues
|
||||
for index in indicesToRemove.reversed() {
|
||||
hindiData.remove(at: index)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Updating the showData with the filtered list
|
||||
// MyListDataTemp.shareInstance.favListingData?.showData = hindiData.map({$0.categoryMasterID = 1})
|
||||
favListingData?.showData = hindiData.map { item in
|
||||
var modifiedItem = item
|
||||
modifiedItem.categoryMasterID = "1"
|
||||
return modifiedItem
|
||||
}
|
||||
}
|
||||
default:
|
||||
break
|
||||
}
|
||||
case .failure(let error):
|
||||
guard let self else{return}
|
||||
Utilities.dismissProgressHUD()
|
||||
self.vc.toast(msg: error.localizedDescription , time: 2)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -164,7 +164,7 @@ class AuthFunc{
|
||||
// MARK: - Get the Static URL's
|
||||
|
||||
func getStaticURLs(){
|
||||
NetworkManager.shareInstance.apiRequest(url: APIEndPoints.StaticURLs.live_streaming, method: .get, queue : QueueHelper.background) { [weak self](result : Result<BaseResponseModel<URLStaticDM>, NetworkManager.APIError>) in
|
||||
NetworkManager.shareInstance.apiRequest(url: APIEndPoints.StaticURLs.live_streaming, method: .get) { [weak self](result : Result<BaseResponseModel<URLStaticDM>, NetworkManager.APIError>) in
|
||||
switch result{
|
||||
case .success(let data):
|
||||
guard let self else{return}
|
||||
|
||||
@@ -71,6 +71,7 @@ struct APIEndPoints {
|
||||
static let user_logout = makeURL(path: "user_logout")
|
||||
static let user_deactivate_account = makeURL(path: "user_deactivate_account")
|
||||
static let order_listing = makeURL(path: "order_listing")
|
||||
static let order_status_track = makeURL(path: "order_status_track")
|
||||
}
|
||||
|
||||
struct Home{
|
||||
|
||||
@@ -62,6 +62,7 @@ class NetworkManager{
|
||||
*/
|
||||
if value.success == 4{
|
||||
if let topController = UIApplication.topViewController() {
|
||||
Utilities.dismissProgressHUD()
|
||||
let sb = UIStoryboard(name: K.StoryBoard.customAlerts, bundle: nil)
|
||||
let vcPush = sb.instantiateViewController(withIdentifier: K.StoryBoardID.CustomAlerts.alertCustomVC) as! AlertCustomVC
|
||||
vcPush.contentLabel = "Please Login Again"
|
||||
|
||||
@@ -98,8 +98,9 @@ class SplashVM{
|
||||
if AuthFunc.shareInstance.staticURLs == nil{
|
||||
AuthFunc.shareInstance.getStaticURLs()
|
||||
}
|
||||
|
||||
UIApplication.setRootView(SideMenuController.instantiate(from: .Home))
|
||||
DispatchQueue.main.async {
|
||||
UIApplication.setRootView(SideMenuController.instantiate(from: .Home))
|
||||
}
|
||||
print("User Token --> ", AuthFunc.shareInstance.getAccessToken())
|
||||
default:
|
||||
break
|
||||
|
||||
@@ -10,8 +10,8 @@ import CoreData
|
||||
|
||||
/**
|
||||
Hey there, I hope you enjoyed the video, if you have any questions then please feel free to ask I will be happy to answer them.
|
||||
|
||||
Do share this with your iOS group on whatsapp or facebook or anyone who wants to learn iOS*/
|
||||
Do share this with your iOS group on whatsapp or facebook or anyone who wants to learn iOS
|
||||
*/
|
||||
|
||||
enum PersistentStorageEnum : String{
|
||||
case UserClicks
|
||||
@@ -40,6 +40,7 @@ enum PostType: Int {
|
||||
case others = 15
|
||||
case home = 16
|
||||
}
|
||||
|
||||
//enum PostType: String {
|
||||
// case series = "1"
|
||||
// case season = "2"
|
||||
@@ -199,14 +200,13 @@ final class PersistentStorage
|
||||
|
||||
// fetchRequests.fetchLimit = 1
|
||||
// fetchRequests.sortDescriptors = [NSSortDescriptor.init(key: "uuid", ascending: false)]
|
||||
|
||||
do {
|
||||
guard let result = try managedContext.fetch(fetchRequest) as? [UserClicks] else {return}
|
||||
result.forEach { clicks in
|
||||
print("ID:-" , PostType(rawValue: Int(clicks.post_type))!, "CatID:- ", clicks.category_id, "PostID:- ", clicks.post_id , "Count:-", clicks.click_counts)
|
||||
}
|
||||
|
||||
} catch let error
|
||||
}
|
||||
catch let error
|
||||
{
|
||||
debugPrint(error)
|
||||
}
|
||||
|
||||
99
WOKA/SideBarNav/Controller/MyOrderDetailsVC.swift
Normal file
99
WOKA/SideBarNav/Controller/MyOrderDetailsVC.swift
Normal file
@@ -0,0 +1,99 @@
|
||||
//
|
||||
// MyOrderDetailsVC.swift
|
||||
// WOKA
|
||||
//
|
||||
// Created by MacBook Pro on 08/08/24.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
import Alamofire
|
||||
|
||||
class MyOrderDetailsVC: UIViewController {
|
||||
|
||||
@IBOutlet weak var orderIDNumber: UILabel!
|
||||
@IBOutlet weak var airWayBillNo: UILabel!
|
||||
@IBOutlet weak var status: UILabel!
|
||||
@IBOutlet weak var expectedDate: UILabel!
|
||||
@IBOutlet weak var tableView: UITableView!
|
||||
|
||||
var orderID : String?
|
||||
var data : OrderDetailsDM.ResultData?
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
setupCell()
|
||||
|
||||
if let orderID{
|
||||
getOrdersDetails(orderID: orderID)
|
||||
}
|
||||
}
|
||||
|
||||
func setupCell(){
|
||||
tableView.register(UINib(nibName: K.CellIdentifier.SideBarNav.myOrderDetailsCell, bundle: nil), forCellReuseIdentifier: K.CellIdentifier.SideBarNav.myOrderDetailsCell)
|
||||
tableView.delegate = self
|
||||
tableView.dataSource = self
|
||||
}
|
||||
|
||||
// MARK: - Get MyORders
|
||||
|
||||
func getOrdersDetails(orderID : String){
|
||||
Utilities.startProgressHUD()
|
||||
let headers : HTTPHeaders = ["Accept-Language" : AuthFunc.shareInstance.languageSelected == .english ? "English" : "Hindi",
|
||||
"access-token": AuthFunc.shareInstance.getAccessToken()]
|
||||
let url = "\(APIEndPoints.SideBarNav.order_status_track )/\(orderID)"
|
||||
NetworkManager.shareInstance.apiRequest(url: url, method: .get, headers : headers) { [weak self](result : Result<BaseResponseModel<OrderDetailsDM>, NetworkManager.APIError>) in
|
||||
switch result{
|
||||
case .success(let data):
|
||||
switch data.success{
|
||||
case 0:
|
||||
Utilities.dismissProgressHUD()
|
||||
return
|
||||
case 1:
|
||||
Utilities.dismissProgressHUD()
|
||||
guard let data = data.data?.result?.first , let self else{return}
|
||||
self.data = data
|
||||
self.tableView.reloadData()
|
||||
setData()
|
||||
default:
|
||||
break
|
||||
}
|
||||
case .failure(let error):
|
||||
Utilities.dismissProgressHUD()
|
||||
print(error)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func scrollToBottom(animated: Bool) {
|
||||
let bottomOffset = CGPoint(x: 0, y: tableView.contentSize.height - tableView.bounds.size.height)
|
||||
if bottomOffset.y > 0 {
|
||||
tableView.setContentOffset(bottomOffset, animated: animated)
|
||||
}
|
||||
}
|
||||
|
||||
func setData(){
|
||||
if let data{
|
||||
self.orderIDNumber.text = orderID ?? "NA"
|
||||
self.airWayBillNo.text = data.awbno
|
||||
self.status.text = data.shipmentLatestStatus
|
||||
self.expectedDate.text = data.edd
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - TableView DataSource , Delegates
|
||||
|
||||
extension MyOrderDetailsVC : TableViewSRC{
|
||||
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
||||
return self.data?.scanDetail?.count ?? 0
|
||||
}
|
||||
|
||||
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
||||
let cell = tableView.dequeueReusableCell(withIdentifier: K.CellIdentifier.SideBarNav.myOrderDetailsCell) as! MyOrderDetailsCell
|
||||
|
||||
if let data = self.data?.scanDetail?[indexPath.row]{
|
||||
cell.setData(data: data)
|
||||
}
|
||||
return cell
|
||||
}
|
||||
}
|
||||
@@ -11,11 +11,12 @@ class MyOrdersVC: UIViewController {
|
||||
|
||||
var vm = MyOrdersVM()
|
||||
|
||||
@IBOutlet weak var tableView: UITableView!
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
vm.vc = self
|
||||
vm.initView()
|
||||
|
||||
}
|
||||
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
@@ -39,3 +40,26 @@ class MyOrdersVC: UIViewController {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: - TableView DataSource , Delegates
|
||||
|
||||
extension MyOrdersVC : TableViewSRC{
|
||||
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
||||
return vm.orderData.count
|
||||
}
|
||||
|
||||
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
||||
let cell = tableView.dequeueReusableCell(withIdentifier: K.CellIdentifier.SideBarNav.myOrderCell) as! MyOrderCell
|
||||
let data = vm.orderData[indexPath.row]
|
||||
cell.setData(data: data)
|
||||
return cell
|
||||
}
|
||||
|
||||
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
||||
let sb = UIStoryboard(name: K.StoryBoard.sideBarNav, bundle: nil)
|
||||
let vcPush = sb.instantiateViewController(withIdentifier: K.StoryBoardID.SideBarNav.myOrderDetailsVC) as! MyOrderDetailsVC
|
||||
let orderID = vm.orderData[indexPath.row].orderID
|
||||
vcPush.orderID = orderID
|
||||
self.navigationController?.present(vcPush, animated: true)
|
||||
}
|
||||
}
|
||||
|
||||
48
WOKA/SideBarNav/Model/OrderDetailsDM.swift
Normal file
48
WOKA/SideBarNav/Model/OrderDetailsDM.swift
Normal file
@@ -0,0 +1,48 @@
|
||||
//
|
||||
// OrderDetailsDM.swift
|
||||
// WOKA
|
||||
//
|
||||
// Created by MacBook Pro on 08/08/24.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
// MARK: - OrderDetailsDM
|
||||
struct OrderDetailsDM: Codable {
|
||||
let result: [ResultData]?
|
||||
|
||||
// MARK: - ResultData
|
||||
struct ResultData: Codable {
|
||||
let awbno: String?
|
||||
let orderno: String?
|
||||
let ordertype, shipmentLatestStatusCode, shipmentLatestStatus, edd: String?
|
||||
let scanDetail: [ScanDetail]?
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case awbno, orderno, ordertype
|
||||
case shipmentLatestStatusCode = "shipment_latest_status_code"
|
||||
case shipmentLatestStatus = "shipment_latest_status"
|
||||
case edd
|
||||
case scanDetail = "scan_detail"
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - ScanDetail
|
||||
struct ScanDetail: Codable {
|
||||
let awbno: String?
|
||||
let orderno: String?
|
||||
let status, statusCode, updatedDate, location: String?
|
||||
let expDelivery, reasonCode, remarks: String?
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case awbno, orderno, status
|
||||
case statusCode = "status_code"
|
||||
case updatedDate = "updated_date"
|
||||
case location
|
||||
case expDelivery = "exp_delivery"
|
||||
case reasonCode = "reason_code"
|
||||
case remarks
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -669,34 +669,178 @@
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="OrderBottom" translatesAutoresizingMaskIntoConstraints="NO" id="uST-2b-cz5">
|
||||
<rect key="frame" x="0.0" y="606" width="414" height="320"/>
|
||||
</imageView>
|
||||
<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="jgA-2K-hR1">
|
||||
<rect key="frame" x="0.0" y="48" width="414" height="814"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</tableView>
|
||||
</subviews>
|
||||
<viewLayoutGuide key="safeArea" id="RtW-jF-CpU"/>
|
||||
<color key="backgroundColor" red="0.82745098039215681" green="0.93725490196078431" blue="0.97254901960784312" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<constraints>
|
||||
<constraint firstItem="jgA-2K-hR1" firstAttribute="leading" secondItem="RtW-jF-CpU" secondAttribute="leading" id="0PL-3g-7wZ"/>
|
||||
<constraint firstAttribute="bottom" secondItem="uST-2b-cz5" secondAttribute="bottom" constant="-30" id="FHy-EH-6qI"/>
|
||||
<constraint firstItem="uST-2b-cz5" firstAttribute="height" secondItem="6qN-3r-YK8" secondAttribute="height" multiplier="0.357143" id="RWm-br-45y"/>
|
||||
<constraint firstItem="RtW-jF-CpU" firstAttribute="trailing" secondItem="uST-2b-cz5" secondAttribute="trailing" id="SKC-J8-UrF"/>
|
||||
<constraint firstItem="jgA-2K-hR1" firstAttribute="bottom" secondItem="RtW-jF-CpU" secondAttribute="bottom" id="pVR-NO-Mn0"/>
|
||||
<constraint firstItem="jgA-2K-hR1" firstAttribute="top" secondItem="RtW-jF-CpU" secondAttribute="top" id="qUe-UL-MzV"/>
|
||||
<constraint firstItem="jgA-2K-hR1" firstAttribute="trailing" secondItem="RtW-jF-CpU" secondAttribute="trailing" id="t0B-4g-MTp"/>
|
||||
<constraint firstItem="uST-2b-cz5" firstAttribute="leading" secondItem="RtW-jF-CpU" secondAttribute="leading" id="v2g-Sy-ZG1"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<connections>
|
||||
<outlet property="tableView" destination="jgA-2K-hR1" id="c4m-gY-4Vw"/>
|
||||
</connections>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="4at-4P-i4I" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="4120" y="-34"/>
|
||||
<point key="canvasLocation" x="4118.840579710145" y="-34.151785714285715"/>
|
||||
</scene>
|
||||
<!--My Order DetailsVC-->
|
||||
<scene sceneID="MJH-Nj-Tty">
|
||||
<objects>
|
||||
<viewController storyboardIdentifier="MyOrderDetailsVC" id="iq2-ef-Mlf" customClass="MyOrderDetailsVC" customModule="WOKA" customModuleProvider="target" sceneMemberID="viewController">
|
||||
<view key="view" contentMode="scaleToFill" id="xrt-Pk-mPa">
|
||||
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hfz-KR-Jh7">
|
||||
<rect key="frame" x="0.0" y="0.0" width="414" height="15"/>
|
||||
<color key="backgroundColor" name="ImageDarkBlue"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="15" id="CtV-ZL-cNd"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="7" translatesAutoresizingMaskIntoConstraints="NO" id="yKd-Wm-7Eb">
|
||||
<rect key="frame" x="10" y="58" width="394" height="150.5"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="gHG-Sq-26N">
|
||||
<rect key="frame" x="10" y="15" width="374" height="24"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" alignment="center" spacing="3" translatesAutoresizingMaskIntoConstraints="NO" id="qa1-U8-wO9">
|
||||
<rect key="frame" x="91.5" y="0.0" width="191" height="24"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="252" text="Order ID :" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0pK-Sr-Zu5">
|
||||
<rect key="frame" x="0.0" y="0.0" width="87" height="24"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="20"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="252" text="W12121212" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XOs-lG-BTm">
|
||||
<rect key="frame" x="90" y="0.0" width="101" height="24"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="20"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
</stackView>
|
||||
</subviews>
|
||||
</stackView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Tmr-Rh-Yrb">
|
||||
<rect key="frame" x="10" y="46" width="374" height="10"/>
|
||||
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="10" id="aWw-aP-Xz1"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" spacing="3" translatesAutoresizingMaskIntoConstraints="NO" id="Yxd-Vl-RCh">
|
||||
<rect key="frame" x="10" y="63" width="374" height="19.5"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="252" text="AIRWAY BILL NUMBER :" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fQg-ea-PMw">
|
||||
<rect key="frame" x="0.0" y="0.0" width="135" height="19.5"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Regular" family="Exo 2" pointSize="13"/>
|
||||
<color key="textColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="249" verticalHuggingPriority="252" text="W12121212" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hBF-FJ-TnF">
|
||||
<rect key="frame" x="138" y="0.0" width="236" height="19.5"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="16"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
</stackView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" spacing="3" translatesAutoresizingMaskIntoConstraints="NO" id="AnB-y4-ytG">
|
||||
<rect key="frame" x="10" y="89.5" width="374" height="19.5"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="252" text="STATUS :" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zM4-Fp-a8u">
|
||||
<rect key="frame" x="0.0" y="0.0" width="51" height="19.5"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Regular" family="Exo 2" pointSize="13"/>
|
||||
<color key="textColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="249" verticalHuggingPriority="252" text="W12121212" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="75q-hi-LB9">
|
||||
<rect key="frame" x="54" y="0.0" width="320" height="19.5"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="16"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
</stackView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" spacing="3" translatesAutoresizingMaskIntoConstraints="NO" id="0ZT-T1-3cR">
|
||||
<rect key="frame" x="10" y="116" width="374" height="19.5"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="252" text="EXPECTED DATE :" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="YyJ-JQ-UN1">
|
||||
<rect key="frame" x="0.0" y="0.0" width="101" height="19.5"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Regular" family="Exo 2" pointSize="13"/>
|
||||
<color key="textColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="249" verticalHuggingPriority="252" text="W12121212" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2nO-72-dWp">
|
||||
<rect key="frame" x="104" y="0.0" width="270" height="19.5"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="16"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
</stackView>
|
||||
</subviews>
|
||||
<edgeInsets key="layoutMargins" top="15" left="10" bottom="15" right="10"/>
|
||||
</stackView>
|
||||
<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="MeS-Fv-FWi">
|
||||
<rect key="frame" x="0.0" y="213.5" width="414" height="643.5"/>
|
||||
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
|
||||
</tableView>
|
||||
</subviews>
|
||||
<viewLayoutGuide key="safeArea" id="EUh-wH-T1u"/>
|
||||
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
|
||||
<constraints>
|
||||
<constraint firstItem="yKd-Wm-7Eb" firstAttribute="top" secondItem="EUh-wH-T1u" secondAttribute="top" constant="10" id="Eze-3L-ONQ"/>
|
||||
<constraint firstItem="EUh-wH-T1u" firstAttribute="bottom" secondItem="MeS-Fv-FWi" secondAttribute="bottom" constant="5" id="I1j-1P-h2P"/>
|
||||
<constraint firstItem="MeS-Fv-FWi" firstAttribute="top" secondItem="yKd-Wm-7Eb" secondAttribute="bottom" constant="5" id="Ws2-Im-96q"/>
|
||||
<constraint firstItem="EUh-wH-T1u" firstAttribute="trailing" secondItem="MeS-Fv-FWi" secondAttribute="trailing" id="YgT-Bw-if4"/>
|
||||
<constraint firstItem="MeS-Fv-FWi" firstAttribute="leading" secondItem="EUh-wH-T1u" secondAttribute="leading" id="dkd-J0-hhe"/>
|
||||
<constraint firstItem="EUh-wH-T1u" firstAttribute="trailing" secondItem="yKd-Wm-7Eb" secondAttribute="trailing" constant="10" id="e26-Iv-7pz"/>
|
||||
<constraint firstItem="yKd-Wm-7Eb" firstAttribute="leading" secondItem="EUh-wH-T1u" secondAttribute="leading" constant="10" id="hgh-IK-imM"/>
|
||||
<constraint firstItem="hfz-KR-Jh7" firstAttribute="top" secondItem="xrt-Pk-mPa" secondAttribute="top" id="nDY-B0-Hyh"/>
|
||||
<constraint firstItem="hfz-KR-Jh7" firstAttribute="leading" secondItem="EUh-wH-T1u" secondAttribute="leading" id="rk1-gR-XeE"/>
|
||||
<constraint firstItem="EUh-wH-T1u" firstAttribute="trailing" secondItem="hfz-KR-Jh7" secondAttribute="trailing" id="yLe-Mk-rd6"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<connections>
|
||||
<outlet property="airWayBillNo" destination="hBF-FJ-TnF" id="7CS-13-G5N"/>
|
||||
<outlet property="expectedDate" destination="2nO-72-dWp" id="tlh-7p-D8l"/>
|
||||
<outlet property="orderIDNumber" destination="XOs-lG-BTm" id="SgR-et-rLR"/>
|
||||
<outlet property="status" destination="75q-hi-LB9" id="Y5O-w2-id5"/>
|
||||
<outlet property="tableView" destination="MeS-Fv-FWi" id="v5B-8C-dLj"/>
|
||||
</connections>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="LT3-ar-WYS" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="4935" y="-34"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
<designables>
|
||||
<designable name="arD-av-w7V">
|
||||
<size key="intrinsicContentSize" width="169.5" height="21"/>
|
||||
<size key="intrinsicContentSize" width="119.5" height="21"/>
|
||||
</designable>
|
||||
<designable name="fZS-d6-t0h">
|
||||
<size key="intrinsicContentSize" width="169" height="21"/>
|
||||
<size key="intrinsicContentSize" width="119" height="21"/>
|
||||
</designable>
|
||||
<designable name="fiK-Gg-JDj">
|
||||
<size key="intrinsicContentSize" width="169.5" height="21"/>
|
||||
<size key="intrinsicContentSize" width="119.5" height="21"/>
|
||||
</designable>
|
||||
<designable name="zMI-2r-pRQ">
|
||||
<size key="intrinsicContentSize" width="169" height="21"/>
|
||||
<size key="intrinsicContentSize" width="119" height="21"/>
|
||||
</designable>
|
||||
</designables>
|
||||
<resources>
|
||||
@@ -710,6 +854,9 @@
|
||||
<image name="SupportBottomArrow" width="16" height="16"/>
|
||||
<image name="SupportGirlImage" width="166" height="166"/>
|
||||
<image name="WokaLogo" width="2224" height="450.5"/>
|
||||
<namedColor name="ImageDarkBlue">
|
||||
<color red="0.035000000149011612" green="0.0" blue="0.36500000953674316" 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>
|
||||
|
||||
@@ -9,15 +9,30 @@ import UIKit
|
||||
|
||||
class MyOrderCell: UITableViewCell {
|
||||
|
||||
@IBOutlet weak var orderNumber: UILabel!
|
||||
@IBOutlet weak var placedOn: UILabel!
|
||||
@IBOutlet weak var airwayBillNumber: UILabel!
|
||||
@IBOutlet weak var courierNumber: UILabel!
|
||||
@IBOutlet weak var price: UILabel!
|
||||
|
||||
override func awakeFromNib() {
|
||||
super.awakeFromNib()
|
||||
// Initialization code
|
||||
self.backgroundColor = .clear
|
||||
}
|
||||
|
||||
override func setSelected(_ selected: Bool, animated: Bool) {
|
||||
super.setSelected(selected, animated: animated)
|
||||
|
||||
// Configure the view for the selected state
|
||||
}
|
||||
|
||||
func setData(data : OrderListingDM.Datum){
|
||||
self.orderNumber.text = data.orderID
|
||||
self.placedOn.text = data.orderBookedDateTime
|
||||
self.airwayBillNumber.text = (data.airwaybilno == "" || data.airwaybilno == nil) ? "NA" : data.airwaybilno
|
||||
self.courierNumber.text = (data.courier == "" || data.courier == nil) ? "NA" : data.courier
|
||||
self.price.text = data.grandTotal?.toString()
|
||||
}
|
||||
|
||||
@IBAction func trackBtnTapped(_ sender: UIButton) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,51 +20,51 @@
|
||||
<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="166" id="KGk-i7-Jjw" customClass="MyOrderCell" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="422" height="166"/>
|
||||
<tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" rowHeight="264" id="KGk-i7-Jjw" customClass="MyOrderCell" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="422" height="264"/>
|
||||
<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">
|
||||
<rect key="frame" x="0.0" y="0.0" width="422" height="166"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="422" height="264"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="thq-h9-HTk">
|
||||
<rect key="frame" x="10" y="10" width="402" height="146"/>
|
||||
<rect key="frame" x="10" y="10" width="402" height="244"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="om1-xl-cHl">
|
||||
<rect key="frame" x="0.0" y="0.0" width="402" height="146"/>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="7" translatesAutoresizingMaskIntoConstraints="NO" id="om1-xl-cHl">
|
||||
<rect key="frame" x="0.0" y="0.0" width="402" height="244"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" distribution="equalSpacing" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="fFg-2g-NQo">
|
||||
<rect key="frame" x="5" y="5" width="392" height="21.666666666666668"/>
|
||||
<rect key="frame" x="10" y="15.000000000000002" width="382" height="17.666666666666671"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" spacing="3" translatesAutoresizingMaskIntoConstraints="NO" id="H3K-qQ-uIB">
|
||||
<rect key="frame" x="0.0" y="0.0" width="164.66666666666666" height="21.666666666666668"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="132" height="17.666666666666668"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="249" verticalHuggingPriority="252" text="Order ID :" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="tNd-xw-5fU">
|
||||
<rect key="frame" x="0.0" y="0.0" width="71" height="21.666666666666668"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Regular" family="Exo 2" pointSize="17"/>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="249" verticalHuggingPriority="252" text="Order ID :" lineBreakMode="wordWrap" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="tNd-xw-5fU">
|
||||
<rect key="frame" x="0.0" y="0.0" width="58.333333333333336" height="17.666666666666668"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Regular" family="Exo 2" pointSize="14"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="252" text="W12121212" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qjR-wR-llK">
|
||||
<rect key="frame" x="74" y="0.0" width="90.666666666666686" height="21.666666666666668"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="18"/>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="252" text="W12121212" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qjR-wR-llK">
|
||||
<rect key="frame" x="61.333333333333321" y="0.0" width="70.666666666666686" height="17.666666666666668"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="14"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
</stackView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" spacing="3" translatesAutoresizingMaskIntoConstraints="NO" id="tsW-Oy-qce">
|
||||
<rect key="frame" x="227.33333333333337" y="0.0" width="164.66666666666663" height="21.666666666666668"/>
|
||||
<rect key="frame" x="342.33333333333331" y="0.0" width="39.666666666666686" height="17.666666666666668"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="249" verticalHuggingPriority="252" text="Order ID :" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="CTh-M7-uPa">
|
||||
<rect key="frame" x="0.0" y="0.0" width="71" height="21.666666666666668"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Regular" family="Exo 2" pointSize="17"/>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="249" verticalHuggingPriority="252" text="INR" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="CTh-M7-uPa">
|
||||
<rect key="frame" x="0.0" y="0.0" width="25.666666666666668" height="17.666666666666668"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Regular" family="Exo 2" pointSize="16"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="252" text="W12121212" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="DxS-tx-EWT">
|
||||
<rect key="frame" x="73.999999999999972" y="0.0" width="90.666666666666657" height="21.666666666666668"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="18"/>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="252" text="0" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="DxS-tx-EWT">
|
||||
<rect key="frame" x="28.666666666666686" y="0.0" width="11" height="17.666666666666668"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="17"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
@@ -73,43 +73,132 @@
|
||||
</subviews>
|
||||
</stackView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="cbL-y4-34J">
|
||||
<rect key="frame" x="5" y="36.666666666666664" width="392" height="0.3333333333333357"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<rect key="frame" x="10" y="39.666666666666664" width="382" height="0.3333333333333357"/>
|
||||
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="0.29999999999999999" id="yM2-6x-UgH"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" distribution="equalSpacing" spacing="3" translatesAutoresizingMaskIntoConstraints="NO" id="Dbe-aH-UFu">
|
||||
<rect key="frame" x="5" y="47" width="392" height="94"/>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="zTN-Hj-3ve">
|
||||
<rect key="frame" x="10" y="47" width="382" height="45"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="zTN-Hj-3ve">
|
||||
<rect key="frame" x="0.0" y="0.0" width="90.666666666666671" height="94"/>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="249" verticalHuggingPriority="252" text="PLACED ON" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LIE-Az-C4m">
|
||||
<rect key="frame" x="0.0" y="0.0" width="382" height="19.333333333333332"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Regular" family="Exo 2" pointSize="16"/>
|
||||
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3e7-GB-nb5">
|
||||
<rect key="frame" x="0.0" y="21.333333333333329" width="382" height="23.666666666666671"/>
|
||||
<attributedString key="attributedText">
|
||||
<fragment content="0/0/0000">
|
||||
<attributes>
|
||||
<color key="NSColor" name="ImageDarkBlue"/>
|
||||
<font key="NSFont" size="15" name="Exo2-Regular"/>
|
||||
<paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
|
||||
</attributes>
|
||||
</fragment>
|
||||
</attributedString>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
</stackView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="JsU-OW-6Qh">
|
||||
<rect key="frame" x="10" y="99" width="382" height="0.3333333333333286"/>
|
||||
<color key="backgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="0.29999999999999999" id="9ia-4Z-nDS"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" distribution="equalSpacing" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="DpM-gd-VKI">
|
||||
<rect key="frame" x="10" y="106.33333333333331" width="382" height="122.66666666666669"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" spacing="7" translatesAutoresizingMaskIntoConstraints="NO" id="iwt-Jo-ze3">
|
||||
<rect key="frame" x="0.0" y="0.0" width="159" height="122.66666666666667"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="249" verticalHuggingPriority="252" text="PLACED ON" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LIE-Az-C4m">
|
||||
<rect key="frame" x="0.0" y="0.0" width="90.666666666666671" height="20.666666666666668"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Regular" family="Exo 2" pointSize="17"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="W12121212" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3e7-GB-nb5">
|
||||
<rect key="frame" x="0.0" y="22.666666666666671" width="90.666666666666671" height="71.333333333333329"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="18"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="zGn-XW-9mE">
|
||||
<rect key="frame" x="0.0" y="0.0" width="159" height="57.666666666666664"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="249" verticalHuggingPriority="252" text="AIRWAY BILL NUMBER" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ogb-A2-eeS">
|
||||
<rect key="frame" x="0.0" y="0.0" width="159" height="19.333333333333332"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Regular" family="Exo 2" pointSize="16"/>
|
||||
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" verticalCompressionResistancePriority="749" text="W12121212" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JOe-v5-bpU">
|
||||
<rect key="frame" x="0.0" y="21.333333333333332" width="159" height="36.333333333333343"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="17"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
</stackView>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="cxD-ln-seY">
|
||||
<rect key="frame" x="0.0" y="64.666666666666671" width="159" height="58"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="249" verticalHuggingPriority="252" text="COURIER" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="riF-vR-xpB">
|
||||
<rect key="frame" x="0.0" y="0.0" width="159" height="19.333333333333332"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Regular" family="Exo 2" pointSize="16"/>
|
||||
<color key="textColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" verticalCompressionResistancePriority="749" text="W12121212" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="EEm-nj-Jes">
|
||||
<rect key="frame" x="0.0" y="21.333333333333339" width="159" height="36.666666666666657"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="17"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
</stackView>
|
||||
</subviews>
|
||||
</stackView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="NZy-Uo-gaT">
|
||||
<rect key="frame" x="342" y="0.0" width="50" height="94"/>
|
||||
<color key="backgroundColor" systemColor="linkColor"/>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7L6-Gp-tOF">
|
||||
<rect key="frame" x="262" y="0.0" width="120" height="122.66666666666667"/>
|
||||
<subviews>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" hasAttributedTitle="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ZtE-R4-viL">
|
||||
<rect key="frame" x="0.0" y="61.333333333333329" width="120" height="40"/>
|
||||
<color key="backgroundColor" name="ImageDarkBlue"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="40" id="99Z-Yf-ySM"/>
|
||||
</constraints>
|
||||
<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">
|
||||
<attributedString key="attributedTitle">
|
||||
<fragment content="Track">
|
||||
<attributes>
|
||||
<font key="NSFont" size="16" name="Exo2-Bold"/>
|
||||
</attributes>
|
||||
</fragment>
|
||||
</attributedString>
|
||||
</state>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<integer key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<connections>
|
||||
<action selector="trackBtnTapped:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="LBo-ng-IGH"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="50" id="Nwj-FX-GjI"/>
|
||||
<constraint firstItem="ZtE-R4-viL" firstAttribute="centerX" secondItem="7L6-Gp-tOF" secondAttribute="centerX" id="Rhe-8e-iNf"/>
|
||||
<constraint firstItem="ZtE-R4-viL" firstAttribute="leading" secondItem="7L6-Gp-tOF" secondAttribute="leading" id="Ysu-dU-Mnr"/>
|
||||
<constraint firstAttribute="trailing" secondItem="ZtE-R4-viL" secondAttribute="trailing" id="asE-8W-tGw"/>
|
||||
<constraint firstItem="ZtE-R4-viL" firstAttribute="centerY" secondItem="7L6-Gp-tOF" secondAttribute="centerY" constant="20" id="cs8-5b-C4I"/>
|
||||
<constraint firstAttribute="width" constant="120" id="fMH-2v-3Ju"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
</stackView>
|
||||
</subviews>
|
||||
<edgeInsets key="layoutMargins" top="5" left="5" bottom="5" right="5"/>
|
||||
<constraints>
|
||||
<constraint firstItem="zTN-Hj-3ve" firstAttribute="top" secondItem="om1-xl-cHl" secondAttribute="top" constant="47" id="68Q-f6-G0b"/>
|
||||
<constraint firstItem="JsU-OW-6Qh" firstAttribute="top" secondItem="om1-xl-cHl" secondAttribute="top" constant="99" id="GAI-Ja-85y"/>
|
||||
</constraints>
|
||||
<edgeInsets key="layoutMargins" top="15" left="10" bottom="15" right="10"/>
|
||||
</stackView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
@@ -126,6 +215,7 @@
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="thq-h9-HTk" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="10" id="6zo-Pn-31L"/>
|
||||
<constraint firstAttribute="bottom" secondItem="thq-h9-HTk" secondAttribute="bottom" constant="10" id="8Qs-K0-RDx"/>
|
||||
@@ -134,15 +224,22 @@
|
||||
</constraints>
|
||||
</tableViewCellContentView>
|
||||
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
|
||||
<point key="canvasLocation" x="216.79389312977099" y="62.676056338028175"/>
|
||||
<connections>
|
||||
<outlet property="airwayBillNumber" destination="JOe-v5-bpU" id="ZDQ-ek-eVS"/>
|
||||
<outlet property="courierNumber" destination="EEm-nj-Jes" id="KPx-f5-tgh"/>
|
||||
<outlet property="orderNumber" destination="qjR-wR-llK" id="43i-OV-KSt"/>
|
||||
<outlet property="placedOn" destination="3e7-GB-nb5" id="Dro-SJ-AUm"/>
|
||||
<outlet property="price" destination="DxS-tx-EWT" id="kPZ-cS-OFA"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="216.79389312977099" y="95.774647887323951"/>
|
||||
</tableViewCell>
|
||||
</objects>
|
||||
<resources>
|
||||
<namedColor name="ImageDarkBlue">
|
||||
<color red="0.035000000149011612" green="0.0" blue="0.36500000953674316" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</namedColor>
|
||||
<systemColor name="linkColor">
|
||||
<color red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<systemColor name="systemBackgroundColor">
|
||||
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</systemColor>
|
||||
</resources>
|
||||
</document>
|
||||
|
||||
40
WOKA/SideBarNav/View/MyOrderDetailsCell.swift
Normal file
40
WOKA/SideBarNav/View/MyOrderDetailsCell.swift
Normal file
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// MyOrderDetailsCell.swift
|
||||
// WOKA
|
||||
//
|
||||
// Created by MacBook Pro on 08/08/24.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class MyOrderDetailsCell: UITableViewCell {
|
||||
|
||||
@IBOutlet weak var detailDate: UILabel!
|
||||
@IBOutlet weak var detailTime: UILabel!
|
||||
@IBOutlet weak var remarks: UILabel!
|
||||
@IBOutlet weak var location: UILabel!
|
||||
|
||||
override func awakeFromNib() {
|
||||
super.awakeFromNib()
|
||||
// Initialization code
|
||||
}
|
||||
|
||||
override func setSelected(_ selected: Bool, animated: Bool) {
|
||||
super.setSelected(selected, animated: animated)
|
||||
|
||||
}
|
||||
|
||||
func setData(data : OrderDetailsDM.ScanDetail){
|
||||
self.remarks.text = "Order " + (data.remarks ?? "NA")
|
||||
self.location.text = "Arrived at " + (data.location ?? "NA")
|
||||
|
||||
if let updateDate = data.updatedDate , let formattedDate = DateFormatterLib.dateMods(dateStr: updateDate, dateCurrentFormat: .yyyy_MM_dd_HH_mm_ss, dateReturnFormat: .d__MM, stringOrDate: .string).0{
|
||||
self.detailDate.text = formattedDate
|
||||
}
|
||||
|
||||
if let updateTime = data.updatedDate , let formattedDate = DateFormatterLib.dateMods(dateStr: updateTime, dateCurrentFormat: .yyyy_MM_dd_HH_mm_ss, dateReturnFormat: .h_mm_a, stringOrDate: .string).0{
|
||||
self.detailTime.text = formattedDate
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
149
WOKA/SideBarNav/View/MyOrderDetailsCell.xib
Normal file
149
WOKA/SideBarNav/View/MyOrderDetailsCell.xib
Normal file
@@ -0,0 +1,149 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
||||
<device id="retina6_12" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
|
||||
<capability name="Named colors" minToolsVersion="9.0"/>
|
||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||
<capability name="System colors in document resources" minToolsVersion="11.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<customFonts key="customFonts">
|
||||
<array key="Exo2-Bold.ttf">
|
||||
<string>Exo2-Bold</string>
|
||||
</array>
|
||||
<array key="Exo2-SemiBold.ttf">
|
||||
<string>Exo2-SemiBold</string>
|
||||
</array>
|
||||
</customFonts>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" rowHeight="199" id="KGk-i7-Jjw" customClass="MyOrderDetailsCell" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="468" height="199"/>
|
||||
<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">
|
||||
<rect key="frame" x="0.0" y="0.0" width="468" height="199"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="tuS-MR-68P">
|
||||
<rect key="frame" x="10" y="10" width="448" height="179"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="pYg-sY-suY">
|
||||
<rect key="frame" x="0.0" y="0.0" width="90" height="179"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wHA-Sl-2VK">
|
||||
<rect key="frame" x="44" y="0.0" width="2" height="72.333333333333329"/>
|
||||
<color key="backgroundColor" red="0.40000000000000002" green="0.59999999999999998" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="30" id="TTz-pc-Jv1"/>
|
||||
<constraint firstAttribute="width" constant="2" id="ZWO-To-B7u"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="center" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="OoM-Hv-kdl">
|
||||
<rect key="frame" x="16.666666666666671" y="72.333333333333329" width="57" height="34.666666666666671"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="249" verticalHuggingPriority="252" text="00/00" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Htn-OT-8NJ">
|
||||
<rect key="frame" x="6.6666666666666679" y="0.0" width="43.333333333333329" height="17"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="14"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" verticalCompressionResistancePriority="749" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2NE-Ax-JqO">
|
||||
<rect key="frame" x="0.0" y="19" width="57" height="15.666666666666664"/>
|
||||
<attributedString key="attributedText">
|
||||
<fragment content="00:00 AM">
|
||||
<attributes>
|
||||
<color key="NSColor" name="ImageDarkBlue"/>
|
||||
<font key="NSFont" size="13" name="Exo2-Medium"/>
|
||||
<paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
|
||||
</attributes>
|
||||
</fragment>
|
||||
</attributedString>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
</stackView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Bda-Ks-Efh">
|
||||
<rect key="frame" x="44" y="107" width="2" height="72"/>
|
||||
<color key="backgroundColor" red="0.40000000000000002" green="0.59999999999999998" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="30" id="SsZ-SR-wVh"/>
|
||||
<constraint firstAttribute="width" constant="2" id="hvX-Mh-sMn"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="90" id="BMY-2h-G7c"/>
|
||||
<constraint firstItem="wHA-Sl-2VK" firstAttribute="centerX" secondItem="pYg-sY-suY" secondAttribute="centerX" id="CqE-62-5cL"/>
|
||||
<constraint firstItem="OoM-Hv-kdl" firstAttribute="centerX" secondItem="pYg-sY-suY" secondAttribute="centerX" id="JeX-ug-wo0"/>
|
||||
<constraint firstItem="Bda-Ks-Efh" firstAttribute="top" secondItem="OoM-Hv-kdl" secondAttribute="bottom" id="Of5-qJ-J4K"/>
|
||||
<constraint firstItem="OoM-Hv-kdl" firstAttribute="top" secondItem="wHA-Sl-2VK" secondAttribute="bottom" id="Q4i-UB-Z2u"/>
|
||||
<constraint firstAttribute="bottom" secondItem="Bda-Ks-Efh" secondAttribute="bottom" id="aJc-6Y-3Qz"/>
|
||||
<constraint firstItem="wHA-Sl-2VK" firstAttribute="top" secondItem="pYg-sY-suY" secondAttribute="top" id="nRC-W8-jHL"/>
|
||||
<constraint firstItem="Bda-Ks-Efh" firstAttribute="centerX" secondItem="pYg-sY-suY" secondAttribute="centerX" id="pGQ-Gu-D9V"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" alignment="center" spacing="7" translatesAutoresizingMaskIntoConstraints="NO" id="2P1-Vl-K4d">
|
||||
<rect key="frame" x="100" y="0.0" width="348" height="179"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="b9J-bS-Szw">
|
||||
<rect key="frame" x="0.0" y="71.666666666666671" width="348" height="35.666666666666671"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="249" verticalHuggingPriority="252" text="NA" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="p1u-nq-gX6">
|
||||
<rect key="frame" x="0.0" y="0.0" width="348" height="18"/>
|
||||
<fontDescription key="fontDescription" name="Exo2-SemiBold" family="Exo 2" pointSize="15"/>
|
||||
<color key="textColor" name="ImageDarkBlue"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" verticalCompressionResistancePriority="749" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Pss-ov-DeE">
|
||||
<rect key="frame" x="0.0" y="20" width="348" height="15.666666666666664"/>
|
||||
<attributedString key="attributedText">
|
||||
<fragment content="NA">
|
||||
<attributes>
|
||||
<color key="NSColor" name="ImageDarkBlue"/>
|
||||
<font key="NSFont" size="13" name="Exo2-Regular"/>
|
||||
<paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
|
||||
</attributes>
|
||||
</fragment>
|
||||
</attributedString>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
</stackView>
|
||||
</subviews>
|
||||
</stackView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="OoM-Hv-kdl" firstAttribute="centerY" secondItem="b9J-bS-Szw" secondAttribute="centerY" id="aus-Io-bYv"/>
|
||||
</constraints>
|
||||
</stackView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="tuS-MR-68P" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="10" id="7rb-dI-kNi"/>
|
||||
<constraint firstAttribute="trailing" secondItem="tuS-MR-68P" secondAttribute="trailing" constant="10" id="E4b-rJ-F7e"/>
|
||||
<constraint firstAttribute="bottom" secondItem="tuS-MR-68P" secondAttribute="bottom" constant="10" id="ohd-JH-8tI"/>
|
||||
<constraint firstItem="tuS-MR-68P" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="10" id="sgJ-RY-PWA"/>
|
||||
</constraints>
|
||||
</tableViewCellContentView>
|
||||
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
|
||||
<connections>
|
||||
<outlet property="detailDate" destination="Htn-OT-8NJ" id="RgY-mH-YvR"/>
|
||||
<outlet property="detailTime" destination="2NE-Ax-JqO" id="Qug-ox-mJd"/>
|
||||
<outlet property="location" destination="Pss-ov-DeE" id="efh-Kh-QfX"/>
|
||||
<outlet property="remarks" destination="p1u-nq-gX6" id="B6z-8x-Owz"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="204.58015267175571" y="74.295774647887328"/>
|
||||
</tableViewCell>
|
||||
</objects>
|
||||
<resources>
|
||||
<namedColor name="ImageDarkBlue">
|
||||
<color red="0.035000000149011612" green="0.0" blue="0.36500000953674316" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</namedColor>
|
||||
<systemColor name="systemBackgroundColor">
|
||||
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</systemColor>
|
||||
</resources>
|
||||
</document>
|
||||
@@ -13,6 +13,8 @@ class MyOrdersVM{
|
||||
weak var vc : MyOrdersVC!
|
||||
var cartButton: UIBarButtonItem!
|
||||
var pageNo = 1
|
||||
var orderData = [OrderListingDM.Datum]()
|
||||
|
||||
func initView(){
|
||||
|
||||
vc.title = "MY ORDERS".localized(loc: AuthFunc.shareInstance.languageSelected.rawValue)
|
||||
@@ -32,9 +34,16 @@ class MyOrdersVM{
|
||||
}
|
||||
}
|
||||
|
||||
setupCell()
|
||||
getOrders()
|
||||
}
|
||||
|
||||
func setupCell(){
|
||||
vc.tableView.register(UINib(nibName: K.CellIdentifier.SideBarNav.myOrderCell, bundle: nil), forCellReuseIdentifier: K.CellIdentifier.SideBarNav.myOrderCell)
|
||||
vc.tableView.delegate = vc.self
|
||||
vc.tableView.dataSource = vc.self
|
||||
}
|
||||
|
||||
@objc func cartButtonTapped(){
|
||||
if AuthFunc.shareInstance.guestUserLoginPopUp() { return}
|
||||
|
||||
@@ -60,13 +69,15 @@ class MyOrdersVM{
|
||||
return
|
||||
case 1:
|
||||
Utilities.dismissProgressHUD()
|
||||
guard let data = data.data?.result else{return}
|
||||
print(data)
|
||||
guard let data = data.data?.result?.data else{return}
|
||||
self.orderData = data
|
||||
self.vc.tableView.reloadData()
|
||||
default:
|
||||
break
|
||||
}
|
||||
case .failure(let error):
|
||||
Utilities.dismissProgressHUD()
|
||||
print(error)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -588,14 +588,8 @@
|
||||
<rect key="frame" x="126.66666666666666" y="57" width="120" height="40"/>
|
||||
<color key="backgroundColor" red="0.035294117649999998" green="0.0" blue="0.36470588240000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="120" id="TY4-vs-ytg"/>
|
||||
<constraint firstAttribute="height" constant="40" id="kyk-fQ-qPF">
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<integer key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</constraint>
|
||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="120" id="TY4-vs-ytg"/>
|
||||
<constraint firstAttribute="height" constant="40" id="kyk-fQ-qPF"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="14"/>
|
||||
<color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
@@ -875,10 +869,10 @@
|
||||
<rect key="frame" x="0.0" y="459" width="393" height="463"/>
|
||||
</imageView>
|
||||
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wIw-DO-ba0">
|
||||
<rect key="frame" x="0.0" y="359" width="393" height="493"/>
|
||||
<rect key="frame" x="0.0" y="359" width="393" height="459"/>
|
||||
<subviews>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="1iA-oh-toI">
|
||||
<rect key="frame" x="0.0" y="0.0" width="393" height="418"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="393" height="448"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" text="Explore WOKA" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cla-Q5-K2m" customClass="LocalisedElementsLabel" customModule="WOKA" customModuleProvider="target">
|
||||
<rect key="frame" x="10" y="10" width="373" height="24"/>
|
||||
@@ -915,7 +909,7 @@
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="MasilaComingSoon" translatesAutoresizingMaskIntoConstraints="NO" id="l2T-ED-avg">
|
||||
<rect key="frame" x="7" y="7" width="339" height="140"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="140" id="XtW-7O-1bH"/>
|
||||
<constraint firstAttribute="height" constant="140" id="GbQ-KX-tc5"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
@@ -927,14 +921,8 @@
|
||||
<rect key="frame" x="116.66666666666666" y="57" width="120" height="40"/>
|
||||
<color key="backgroundColor" red="0.035294117649999998" green="0.0" blue="0.36470588240000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="40" id="K1Z-vZ-Ips">
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<integer key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</constraint>
|
||||
<constraint firstAttribute="width" constant="120" id="iGd-tK-5dU"/>
|
||||
<constraint firstAttribute="height" constant="40" id="K1Z-vZ-Ips"/>
|
||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="120" id="LML-hS-vu8"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" name="Exo2-Bold" family="Exo 2" pointSize="14"/>
|
||||
<color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
@@ -959,15 +947,14 @@
|
||||
</subviews>
|
||||
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
|
||||
<constraints>
|
||||
<constraint firstItem="Vca-pu-v34" firstAttribute="centerY" secondItem="l2T-ED-avg" secondAttribute="centerY" id="0Un-bt-NWE"/>
|
||||
<constraint firstItem="l2T-ED-avg" firstAttribute="leading" secondItem="dj6-9c-mxm" secondAttribute="leading" constant="7" id="BET-Pu-J0t"/>
|
||||
<constraint firstItem="l2T-ED-avg" firstAttribute="top" secondItem="dj6-9c-mxm" secondAttribute="top" constant="7" id="LYv-Tk-IDH"/>
|
||||
<constraint firstItem="xhN-tm-LoZ" firstAttribute="leading" secondItem="dj6-9c-mxm" secondAttribute="leading" constant="7" id="TQZ-Ib-f6E"/>
|
||||
<constraint firstAttribute="trailing" secondItem="l2T-ED-avg" secondAttribute="trailing" constant="7" id="Wbg-xe-81M"/>
|
||||
<constraint firstItem="xhN-tm-LoZ" firstAttribute="top" secondItem="l2T-ED-avg" secondAttribute="bottom" constant="5" id="dR7-LV-1RK"/>
|
||||
<constraint firstItem="Vca-pu-v34" firstAttribute="centerX" secondItem="l2T-ED-avg" secondAttribute="centerX" id="dYy-Bn-mA5"/>
|
||||
<constraint firstItem="Vca-pu-v34" firstAttribute="centerY" secondItem="l2T-ED-avg" secondAttribute="centerY" id="fJb-G5-9NU"/>
|
||||
<constraint firstAttribute="trailing" secondItem="xhN-tm-LoZ" secondAttribute="trailing" constant="7" id="nKE-s8-KX5"/>
|
||||
<constraint firstAttribute="height" constant="180" id="q7z-Hq-SSj"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
@@ -976,8 +963,18 @@
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="224" id="08P-XB-umg"/>
|
||||
</constraints>
|
||||
<edgeInsets key="layoutMargins" top="10" left="10" bottom="0.0" right="10"/>
|
||||
</stackView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="K3K-3D-e9X">
|
||||
<rect key="frame" x="10" y="428" width="373" height="20"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="20" id="Etm-uk-Fs9"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<edgeInsets key="layoutMargins" top="10" left="10" bottom="0.0" right="10"/>
|
||||
</stackView>
|
||||
@@ -997,7 +994,7 @@
|
||||
<color key="backgroundColor" red="0.035294117649999998" green="0.0" blue="0.36470588240000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstItem="1fD-0F-KMn" firstAttribute="leading" secondItem="QRd-bR-MwE" secondAttribute="leading" id="6I2-0g-j8p"/>
|
||||
<constraint firstAttribute="bottom" secondItem="wIw-DO-ba0" secondAttribute="bottom" id="8aT-sg-dlZ"/>
|
||||
<constraint firstItem="QRd-bR-MwE" firstAttribute="bottom" secondItem="wIw-DO-ba0" secondAttribute="bottom" id="8aT-sg-dlZ"/>
|
||||
<constraint firstItem="wIw-DO-ba0" firstAttribute="top" secondItem="Ksi-1c-xBG" secondAttribute="bottom" constant="5" id="9iK-1y-iUL"/>
|
||||
<constraint firstItem="wIw-DO-ba0" firstAttribute="trailing" secondItem="QRd-bR-MwE" secondAttribute="trailing" id="B2f-vS-BlM"/>
|
||||
<constraint firstItem="03W-c9-Rk6" firstAttribute="top" secondItem="Ksi-1c-xBG" secondAttribute="top" id="Lbz-Fr-iIx"/>
|
||||
|
||||
@@ -31,10 +31,6 @@ class ThemeTwoVC: UIViewController {
|
||||
super.viewDidLoad()
|
||||
vm.vc = self
|
||||
vm.initView()
|
||||
liveTvView.addTapGesture { [weak self] in
|
||||
guard let self else{return}
|
||||
self.vm.playLiveTV()
|
||||
}
|
||||
|
||||
if MyListDataTemp.shareInstance.favListingData?.showData == nil {
|
||||
MyListDataTemp.shareInstance.favListingData = FavouriteListingDM.ResultData(showData: [], videoData: [], gameData: [], singKaraokeData: [], audioData: [])
|
||||
|
||||
@@ -39,6 +39,10 @@ class ThemeTwoVM{
|
||||
setUserData()
|
||||
|
||||
handleNotificationCenter()
|
||||
vc.liveTvView.addTapGesture { [weak self] in
|
||||
guard let self else{return}
|
||||
self.playLiveTV()
|
||||
}
|
||||
}
|
||||
|
||||
private func handleNotificationCenter(){
|
||||
@@ -271,7 +275,7 @@ class ThemeTwoVM{
|
||||
|
||||
func setData(){
|
||||
|
||||
playerLayer.frame = self.vc.liveTvView.bounds
|
||||
// playerLayer.frame = self.vc.liveTvView.bounds
|
||||
|
||||
guard let data = AuthFunc.shareInstance.userData else{return}
|
||||
//set the first name as the name
|
||||
|
||||
Reference in New Issue
Block a user