- 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,38 @@
//
// ExploreWokaVC.swift
// WOKA
//
// Created by MacBook Pro on 21/05/24.
//
import UIKit
class ExploreWokaVC: UIViewController {
@IBOutlet weak var blurView: UIView!
@IBOutlet weak var extraView: UIView!
override func viewDidLoad() {
super.viewDidLoad()
drawBackgroundBlur()
// Do any additional setup after loading the view.
}
func drawBackgroundBlur() {
let blurEffect = UIBlurEffect(style: .light)
let blurredView = UIVisualEffectView(effect: blurEffect)
blurredView.frame = self.view.bounds
blurredView.alpha = 0.95
self.extraView.addSubview(blurredView)
let vibrancyEffect = UIVibrancyEffect(blurEffect: blurEffect)
let vibrancyView = UIVisualEffectView(effect: vibrancyEffect)
vibrancyView.translatesAutoresizingMaskIntoConstraints = false
vibrancyView.contentView.addSubview(blurView)
blurredView.contentView.addSubview(vibrancyView)
}
@IBAction func closeTapped(_ sender: UIButton) {
self.dismiss(animated: true)
}
}

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
}
}

View File

@@ -0,0 +1,19 @@
//
// MyListVC.swift
//
// Created by Bilal on 19/05/2024.
//
import UIKit
class MyListVC: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
@IBAction func sideBarBtnTapped(_ sender: UIButton) {
self.sideMenuController?.revealMenu()
}
}