- Finalised The side menu integration in the project.

This commit is contained in:
2024-05-21 19:36:15 +05:30
parent ce74f4dffd
commit 0ebb59eab8
55 changed files with 2887 additions and 190 deletions

View File

@@ -0,0 +1,47 @@
//
// HomeVC.swift
// WOKA
//
// Created by Bilal on 03/05/2024.
//
import UIKit
class HomeVC: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
customizeTabBarItemIconSize()
}
// Define a function to customize tab bar item icon size
func customizeTabBarItemIconSize() {
// Get a reference to the tab bar controller
if let tabBarController = self.tabBarController {
// Loop through each tab bar item
for item in tabBarController.tabBar.items! {
// Adjust the image insets to increase the icon size
item.imageInsets = UIEdgeInsets(top: 2, left: -5, bottom: -8, right: -5)
item.titlePositionAdjustment.vertical = CGFloat(8)
}
}
}
@IBAction func barButtonTapped(_ sender: UIButton) {
self.sideMenuController?.revealMenu()
}
}
class NavigationController: UINavigationController {
open override var childForStatusBarHidden: UIViewController? {
return self.topViewController
}
open override var childForStatusBarStyle: UIViewController? {
return self.topViewController
}
}