Skip to content
/ MBY Public

An action button component inspired from material design

Notifications You must be signed in to change notification settings

yassram/MBY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MBY : MaterialButton animated

Made for iOS

MBY is an action button component inspired from material design.

Preview :

Demo MLB

Usage :

You have to add MBY.swift to your project.

To create a new MBY button :

     let btn = MBY(position: .BR, image:UIImage(named:"settings")!)       // init a new MBY
     
     view.addSubview(btn)                                                 // add btn to your view
You can use 4 possible positions :
  • .BR for Bottom Right
  • .BL for Bottom Left
  • .TR for Top Right
  • .TL for Top Left

To add options to your MBY button :

      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. 

About

An action button component inspired from material design

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages