Commit fe18d967 by Daniel Dahan

development: updated FABMenuItem and FABMenu properties to fabButton and fabMenuItems, respectively

parent 1b96ea1f
......@@ -42,8 +42,8 @@ open class FABMenuItem: View {
/// A reference to the titleLabel.
open let titleLabel = UILabel()
/// A reference to the button.
open let button = FABButton()
/// A reference to the fabButton.
open let fabButton = FABButton()
/**
Prepares the view instance when intialized. When subclassing,
......@@ -56,7 +56,7 @@ open class FABMenuItem: View {
super.prepare()
backgroundColor = nil
prepareButton()
prepareFABButton()
prepareTitleLabel()
}
......@@ -113,9 +113,9 @@ extension FABMenuItem {
}
extension FABMenuItem {
/// Prepares the button.
fileprivate func prepareButton() {
layout(button).edges()
/// Prepares the fabButton.
fileprivate func prepareFABButton() {
layout(fabButton).edges()
}
/// Prepares the titleLabel.
......@@ -123,7 +123,7 @@ extension FABMenuItem {
titleLabel.font = RobotoFont.regular(with: 14)
titleLabel.textAlignment = .center
titleLabel.backgroundColor = .white
titleLabel.depthPreset = button.depthPreset
titleLabel.depthPreset = fabButton.depthPreset
titleLabel.cornerRadiusPreset = .cornerRadius1
}
}
......@@ -170,7 +170,6 @@ public protocol FABMenuDelegate {
optional func fabMenu(fabMenu: FABMenu, tappedAt point: CGPoint, isOutside: Bool)
}
@objc(FABMenu)
open class FABMenu: View {
/// A reference to the SpringMotion object.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment