BABottomSliderMenu is a customizable bottom slide Menu.
BABottomSliderMenu requires iOS 13+ and is compatible with Swift 5 projects.
pod 'BABottomSliderMenu'
or
Drag and Drop the folder Source
into your project.
BABottomSliderMenu was designed to be used effortlessly.
create the cells as follows:-
let cell1 = BASliderViewCellProperties(
nibName: BASliderViewCellIdetifiers.imageCell.rawValue,
cellIdentifier: BASliderViewCellIdetifiers.imageCell,
index: 1,
itemProperties: [BASliderItemProperties(
itemID: 10001,
text: "",
font: UIFont.systemFont(ofSize: 12, weight: .regular),
textColour: .black,
textAlignment: .center,
backgroundColour: .white,
desiredHeight: 50,
imageName: "icCross"
)]
)
we have diffrent types of default cell types:
headerCell
buttonCell
twoButtonCell
imageCell
textCell
- Create a tableView cell with .xib
- Assign
BASlideViewDefaultTableViewCell
as tableview cellclass
- Override
itemProperties
- Your new cell is ready.
Once you completes creating cells, make an array of [BASliderViewCellProperties]
.
let sliderViewCells = [cell1, cell2, cell3, cell4] // [BASliderViewCellProperties]
then,
BASlider.show(title: "Alert", sliderViewCells: sliderViewCells, dismissOnTap: true, isHeaderEnabled: true, controller: self)
GOOD LUCK
BABottomSliderMenu is released under a MIT License. See LICENSE file for details.