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
abd72e41
Unverified
Commit
abd72e41
authored
Dec 24, 2016
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
development: added prefix for PulseAnimation to MotionPulseAnimation
parent
542797fb
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
36 additions
and
36 deletions
+36
-36
Sources/iOS/Button.swift
+4
-4
Sources/iOS/CollectionReusableView.swift
+4
-4
Sources/iOS/CollectionViewCell.swift
+4
-4
Sources/iOS/Menu.swift
+1
-1
Sources/iOS/MotionPulse.swift
+8
-8
Sources/iOS/MotionSpring.swift
+7
-7
Sources/iOS/PulseView.swift
+4
-4
Sources/iOS/TableViewCell.swift
+4
-4
No files found.
Sources/iOS/Button.swift
View file @
abd72e41
...
...
@@ -30,7 +30,7 @@
import
UIKit
open
class
Button
:
UIButton
,
Pulseable
{
open
class
Button
:
UIButton
,
Motion
Pulseable
{
/**
A CAShapeLayer used to manage elements that would be affected by
the clipToBounds property of the backing layer. For example, this
...
...
@@ -42,8 +42,8 @@ open class Button: UIButton, Pulseable {
/// A Pulse reference.
fileprivate
var
pulse
:
MotionPulse
!
/// PulseAnimation value.
open
var
pulseAnimation
:
PulseAnimation
{
///
Motion
PulseAnimation value.
open
var
pulseAnimation
:
Motion
PulseAnimation
{
get
{
return
pulse
.
animation
}
...
...
@@ -52,7 +52,7 @@ open class Button: UIButton, Pulseable {
}
}
/// PulseAnimation color.
///
Motion
PulseAnimation color.
@IBInspectable
open
var
pulseColor
:
UIColor
{
get
{
...
...
Sources/iOS/CollectionReusableView.swift
View file @
abd72e41
...
...
@@ -31,7 +31,7 @@
import
UIKit
@objc(CollectionReusableView)
open
class
CollectionReusableView
:
UICollectionReusableView
,
Pulseable
{
open
class
CollectionReusableView
:
UICollectionReusableView
,
Motion
Pulseable
{
/**
A CAShapeLayer used to manage elements that would be affected by
the clipToBounds property of the backing layer. For example, this
...
...
@@ -43,8 +43,8 @@ open class CollectionReusableView: UICollectionReusableView, Pulseable {
/// A Pulse reference.
fileprivate
var
pulse
:
MotionPulse
!
/// PulseAnimation value.
open
var
pulseAnimation
:
PulseAnimation
{
///
Motion
PulseAnimation value.
open
var
pulseAnimation
:
Motion
PulseAnimation
{
get
{
return
pulse
.
animation
}
...
...
@@ -53,7 +53,7 @@ open class CollectionReusableView: UICollectionReusableView, Pulseable {
}
}
/// PulseAnimation color.
///
Motion
PulseAnimation color.
@IBInspectable
open
var
pulseColor
:
UIColor
{
get
{
...
...
Sources/iOS/CollectionViewCell.swift
View file @
abd72e41
...
...
@@ -31,7 +31,7 @@
import
UIKit
@objc(CollectionViewCell)
open
class
CollectionViewCell
:
UICollectionViewCell
,
Pulseable
{
open
class
CollectionViewCell
:
UICollectionViewCell
,
Motion
Pulseable
{
/**
A CAShapeLayer used to manage elements that would be affected by
the clipToBounds property of the backing layer. For example, this
...
...
@@ -43,8 +43,8 @@ open class CollectionViewCell: UICollectionViewCell, Pulseable {
/// A Pulse reference.
fileprivate
var
pulse
:
MotionPulse
!
/// PulseAnimation value.
open
var
pulseAnimation
:
PulseAnimation
{
///
Motion
PulseAnimation value.
open
var
pulseAnimation
:
Motion
PulseAnimation
{
get
{
return
pulse
.
animation
}
...
...
@@ -53,7 +53,7 @@ open class CollectionViewCell: UICollectionViewCell, Pulseable {
}
}
/// PulseAnimation color.
///
Motion
PulseAnimation color.
@IBInspectable
open
var
pulseColor
:
UIColor
{
get
{
...
...
Sources/iOS/Menu.swift
View file @
abd72e41
...
...
@@ -31,7 +31,7 @@
import
UIKit
@objc(menu)
open
class
Menu
:
View
,
Springable
{
open
class
Menu
:
View
,
Motion
Springable
{
internal
let
spring
=
Spring
()
open
var
views
:
[
UIView
]
{
...
...
Sources/iOS/MotionPulse.swift
View file @
abd72e41
...
...
@@ -30,8 +30,8 @@
import
UIKit
@objc(PulseAnimation)
public
enum
PulseAnimation
:
Int
{
@objc(
Motion
PulseAnimation)
public
enum
Motion
PulseAnimation
:
Int
{
case
none
case
center
case
centerWithBacking
...
...
@@ -42,9 +42,9 @@ public enum PulseAnimation: Int {
case
pointWithBacking
}
public
protocol
Pulseable
{
/// A reference to the PulseAnimation.
var
pulseAnimation
:
PulseAnimation
{
get
set
}
public
protocol
Motion
Pulseable
{
/// A reference to the
Motion
PulseAnimation.
var
pulseAnimation
:
Motion
PulseAnimation
{
get
set
}
/// A UIColor.
var
pulseColor
:
UIColor
{
get
set
}
...
...
@@ -54,7 +54,7 @@ public protocol Pulseable {
}
public
struct
MotionPulse
{
/// A UIView that is Pulseable.
/// A UIView that is
Motion
Pulseable.
fileprivate
weak
var
pulseView
:
UIView
?
/// The layer the pulse layers are added to.
...
...
@@ -63,8 +63,8 @@ public struct MotionPulse {
/// Pulse layers.
fileprivate
var
layers
=
[
CAShapeLayer
]()
/// A reference to the PulseAnimation.
public
var
animation
=
MotionPulseAnimation
.
pointWithBacking
/// A reference to the
Motion
PulseAnimation.
public
var
animation
=
Motion
Motion
PulseAnimation
.
pointWithBacking
/// A UIColor.
public
var
color
=
Color
.
grey
.
base
...
...
Sources/iOS/MotionSpring.swift
View file @
abd72e41
...
...
@@ -30,22 +30,22 @@
import
UIKit
@objc(SpringDirection)
public
enum
SpringDirection
:
Int
{
@objc(
Motion
SpringDirection)
public
enum
Motion
SpringDirection
:
Int
{
case
up
case
down
case
left
case
right
}
public
protocol
Springable
{
/// A SpringDirection value.
var
springDirection
:
SpringDirection
{
get
set
}
public
protocol
Motion
Springable
{
/// A
Motion
SpringDirection value.
var
springDirection
:
Motion
SpringDirection
{
get
set
}
}
open
class
MotionSpring
{
/// A SpringDirection value.
open
var
direction
=
SpringDirection
.
up
/// A
Motion
SpringDirection value.
open
var
direction
=
Motion
SpringDirection
.
up
/// A Boolean that indicates if the menu is open or not.
open
internal(set)
var
isOpened
=
false
...
...
Sources/iOS/PulseView.swift
View file @
abd72e41
...
...
@@ -30,12 +30,12 @@
import
UIKit
open
class
PulseView
:
View
,
Pulseable
{
open
class
PulseView
:
View
,
Motion
Pulseable
{
/// A Pulse reference.
fileprivate
var
pulse
:
MotionPulse
!
/// PulseAnimation value.
open
var
pulseAnimation
:
PulseAnimation
{
///
Motion
PulseAnimation value.
open
var
pulseAnimation
:
Motion
PulseAnimation
{
get
{
return
pulse
.
animation
}
...
...
@@ -44,7 +44,7 @@ open class PulseView: View, Pulseable {
}
}
/// PulseAnimation color.
///
Motion
PulseAnimation color.
@IBInspectable
open
var
pulseColor
:
UIColor
{
get
{
...
...
Sources/iOS/TableViewCell.swift
View file @
abd72e41
...
...
@@ -30,7 +30,7 @@
import
UIKit
open
class
TableViewCell
:
UITableViewCell
,
Pulseable
{
open
class
TableViewCell
:
UITableViewCell
,
Motion
Pulseable
{
/**
A CAShapeLayer used to manage elements that would be affected by
the clipToBounds property of the backing layer. For example, this
...
...
@@ -42,8 +42,8 @@ open class TableViewCell: UITableViewCell, Pulseable {
/// A Pulse reference.
fileprivate
var
pulse
:
MotionPulse
!
/// PulseAnimation value.
open
var
pulseAnimation
:
PulseAnimation
{
///
Motion
PulseAnimation value.
open
var
pulseAnimation
:
Motion
PulseAnimation
{
get
{
return
pulse
.
animation
}
...
...
@@ -52,7 +52,7 @@ open class TableViewCell: UITableViewCell, Pulseable {
}
}
/// PulseAnimation color.
///
Motion
PulseAnimation color.
@IBInspectable
open
var
pulseColor
:
UIColor
{
get
{
...
...
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