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
0372b3bc
Unverified
Commit
0372b3bc
authored
Dec 12, 2016
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
development: added isDividerHidden for the Divider UIView extension
parent
f4f1645c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
3 deletions
+25
-3
Sources/iOS/BottomTabBar.swift
+2
-1
Sources/iOS/Divider.swift
+20
-0
Sources/iOS/Switch.swift
+2
-2
Sources/iOS/TabBar.swift
+1
-0
No files found.
Sources/iOS/BottomTabBar.swift
View file @
0372b3bc
...
@@ -43,7 +43,8 @@ open class BottomTabBar: UITabBar {
...
@@ -43,7 +43,8 @@ open class BottomTabBar: UITabBar {
}
}
/// Automatically aligns the BottomNavigationBar to the superview.
/// Automatically aligns the BottomNavigationBar to the superview.
open
var
isAlignedToParentAutomatically
=
true
@IBInspectable
open
var
isAlignedToParentAutomatically
=
true
/// A property that accesses the backing layer's background
/// A property that accesses the backing layer's background
@IBInspectable
@IBInspectable
...
...
Sources/iOS/Divider.swift
View file @
0372b3bc
...
@@ -104,6 +104,15 @@ public struct Divider {
...
@@ -104,6 +104,15 @@ public struct Divider {
self
.
thickness
=
thickness
self
.
thickness
=
thickness
}
}
/**
Hides the divier line.
*/
internal
var
isHidden
=
false
{
didSet
{
line
?
.
isHidden
=
isHidden
}
}
/// Lays out the divider.
/// Lays out the divider.
public
func
reload
()
{
public
func
reload
()
{
guard
let
l
=
line
,
let
v
=
view
else
{
guard
let
l
=
line
,
let
v
=
view
else
{
...
@@ -172,6 +181,17 @@ extension UIView {
...
@@ -172,6 +181,17 @@ extension UIView {
}
}
}
}
/// Divider visibility.
@IBInspectable
open
var
isDividerHidden
:
Bool
{
get
{
return
divider
.
isHidden
}
set
(
value
)
{
divider
.
isHidden
=
value
}
}
/// Divider animation.
/// Divider animation.
open
var
dividerAlignment
:
DividerAlignment
{
open
var
dividerAlignment
:
DividerAlignment
{
get
{
get
{
...
...
Sources/iOS/Switch.swift
View file @
0372b3bc
...
@@ -94,9 +94,9 @@ open class Switch: UIControl {
...
@@ -94,9 +94,9 @@ open class Switch: UIControl {
/// Indicates if the animation should bounce.
/// Indicates if the animation should bounce.
@IBInspectable
@IBInspectable
open
var
b
ounceable
=
true
{
open
var
isB
ounceable
=
true
{
didSet
{
didSet
{
bounceOffset
=
b
ounceable
?
3
:
0
bounceOffset
=
isB
ounceable
?
3
:
0
}
}
}
}
...
...
Sources/iOS/TabBar.swift
View file @
0372b3bc
...
@@ -81,6 +81,7 @@ open class TabBar: Bar {
...
@@ -81,6 +81,7 @@ open class TabBar: Bar {
}
}
/// A boolean to animate the line when touched.
/// A boolean to animate the line when touched.
@IBInspectable
open
var
isLineAnimated
=
true
{
open
var
isLineAnimated
=
true
{
didSet
{
didSet
{
for
b
in
buttons
{
for
b
in
buttons
{
...
...
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