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 { ...@@ -42,8 +42,8 @@ open class FABMenuItem: View {
/// A reference to the titleLabel. /// A reference to the titleLabel.
open let titleLabel = UILabel() open let titleLabel = UILabel()
/// A reference to the button. /// A reference to the fabButton.
open let button = FABButton() open let fabButton = FABButton()
/** /**
Prepares the view instance when intialized. When subclassing, Prepares the view instance when intialized. When subclassing,
...@@ -56,7 +56,7 @@ open class FABMenuItem: View { ...@@ -56,7 +56,7 @@ open class FABMenuItem: View {
super.prepare() super.prepare()
backgroundColor = nil backgroundColor = nil
prepareButton() prepareFABButton()
prepareTitleLabel() prepareTitleLabel()
} }
...@@ -113,9 +113,9 @@ extension FABMenuItem { ...@@ -113,9 +113,9 @@ extension FABMenuItem {
} }
extension FABMenuItem { extension FABMenuItem {
/// Prepares the button. /// Prepares the fabButton.
fileprivate func prepareButton() { fileprivate func prepareFABButton() {
layout(button).edges() layout(fabButton).edges()
} }
/// Prepares the titleLabel. /// Prepares the titleLabel.
...@@ -123,7 +123,7 @@ extension FABMenuItem { ...@@ -123,7 +123,7 @@ extension FABMenuItem {
titleLabel.font = RobotoFont.regular(with: 14) titleLabel.font = RobotoFont.regular(with: 14)
titleLabel.textAlignment = .center titleLabel.textAlignment = .center
titleLabel.backgroundColor = .white titleLabel.backgroundColor = .white
titleLabel.depthPreset = button.depthPreset titleLabel.depthPreset = fabButton.depthPreset
titleLabel.cornerRadiusPreset = .cornerRadius1 titleLabel.cornerRadiusPreset = .cornerRadius1
} }
} }
...@@ -170,7 +170,6 @@ public protocol FABMenuDelegate { ...@@ -170,7 +170,6 @@ public protocol FABMenuDelegate {
optional func fabMenu(fabMenu: FABMenu, tappedAt point: CGPoint, isOutside: Bool) optional func fabMenu(fabMenu: FABMenu, tappedAt point: CGPoint, isOutside: Bool)
} }
@objc(FABMenu) @objc(FABMenu)
open class FABMenu: View { open class FABMenu: View {
/// A reference to the SpringMotion object. /// 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