Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
Material
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
Material
Commits
fe18d967
Unverified
Commit
fe18d967
authored
Jan 02, 2017
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
development: updated FABMenuItem and FABMenu properties to fabButton and fabMenuItems, respectively
parent
1b96ea1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
Sources/iOS/FABMenu.swift
+7
-8
No files found.
Sources/iOS/FABMenu.swift
View file @
fe18d967
...
@@ -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
b
utton.
/// A reference to the
fabB
utton.
open
let
b
utton
=
FABButton
()
open
let
fabB
utton
=
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
()
prepare
FAB
Button
()
prepareTitleLabel
()
prepareTitleLabel
()
}
}
...
@@ -113,9 +113,9 @@ extension FABMenuItem {
...
@@ -113,9 +113,9 @@ extension FABMenuItem {
}
}
extension
FABMenuItem
{
extension
FABMenuItem
{
/// Prepares the
b
utton.
/// Prepares the
fabB
utton.
fileprivate
func
prepareButton
()
{
fileprivate
func
prepare
FAB
Button
()
{
layout
(
b
utton
)
.
edges
()
layout
(
fabB
utton
)
.
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
=
b
utton
.
depthPreset
titleLabel
.
depthPreset
=
fabB
utton
.
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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment