- July 25, 2025
- Mins Read
Swift Package Manager
Open Xcode
, go to File -> Swift Packages -> Add Package Dependency
and enter https://github.com/akardas16/SideMenu.git
as Branch main
You need to add import SideMenu
Without 3D effect With 3D effect
SideMenuView(
isMenuOpen: $isMenuOpen,
tabs: tabs, // add your [MenuTabModel]
selectedTab: $selectedTab, //initial selectedTab
backColor: $backColor, //acces view placeholder background
backImage: “airplane”, //add your background image! Default value is airplane
selectionColor: .purple,
blurRadius: 32, // add blur radius for image default value is 32
enable3D: true //enable/disable 3D effect
) {
if selectedTab.title == “Home” {
TabOne(isMenuOpen: $isMenuOpen, backColor: $backColor)
}else if selectedTab.title == “Profile” {
TabTwo(isMenuOpen: $isMenuOpen, backColor: $backColor)
}else if selectedTab.title == “Settings” {
TabThree(isMenuOpen: $isMenuOpen, backColor: $backColor)
}
}
let tabs = [MenuTabModel(title: “Home”, imageName: “house”),MenuTabModel(title: “Profile”, imageName: “person”),MenuTabModel( title: “Settings”, imageName: “gear”)]
@State var isMenuOpen:Bool = true
@State var selectedTab:MenuTabModel = MenuTabModel(title: “Home”, imageName: “house”)
@State var backColor = Color.pink
HomeView.swift
file to your project and see UI on previewWith SwiftUI Router you can power your SwiftUI app with path-based routing. By utilizing a path-based system, navigation in your app becomes ...
This package takes SwiftUI's familiar and powerful NavigationStack API and gives it superpowers, allowing you to use the same API not just ...
Modeling Custom Types with Structures and Classes In Swift, structures (struct) and classes (class) are the two primary building blocks ...