MBY is an action button component inspired from material design.
You have to add MBY.swift to your project.
let btn = MBY(position: .BR, image:UIImage(named:"settings")!) // init a new MBY
view.addSubview(btn) // add btn to your view
- .BR for Bottom Right
- .BL for Bottom Left
- .TR for Top Right
- .TL for Top Left
btn.addMBYO(image: UIImage(named:"imagename")!,action:{
// actions to perform on option's button tap
print("Tap detected")
})
// you can add as many options as you want.