Skip to content

karticodes/MaterialView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MaterialView

Material Floating Button for iOS - Swift

MaterialView is a replica of Material design's Floating Action Button(FAB) for iOS with more customizable options. It is written in Swift programming language and it provides customizations through delegates.

Features

  • Customizable items direction
  • Switch between Show/Hide hints
  • Customizable hints direction
  • Change background overlay color
  • Customizable hint label
  • Customizable item spacing

Sample

Items Direction - Bottom / Hints Direction - Right

alt tag

Items Direction - Right / Hints Direction - Top

alt tag

Installation

  1. Add MaterialButton.swift and MaterialView.swift to your project.
  2. Instantiate MaterialView
var materialView = MaterialView(menuButton: btn, frameInWindow: CGRectMake(50, CGRectGetMidY(view.frame)-35.0, 70, 70), delegate: self)
  1. Implement all required methods 'MaterialViewDelegate'

  2. Follow Project > Run in XCode

  3. Implement other optional delegate methods for more customization.

Mail karticodes@gmail.com for queries.

About

Material Floating Button for iOS - Swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages