Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
Motion
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
Motion
Commits
abc65458
Unverified
Commit
abc65458
authored
Feb 27, 2017
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed CocoaPods issues
parent
78bf1d75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
README.md
+1
-1
Sources/Motion.swift
+9
-9
No files found.
README.md
View file @
abc65458
...
...
@@ -4,7 +4,7 @@ Motion is a tool used to create transition animations between view controllers.
## Sample
Take a look at a sample
[
Photo Collection
](
https://github.com/CosmicMind/Samples/tree/master/
Motion
/PhotoCollection
)
project.
Take a look at a sample
[
Photo Collection
](
https://github.com/CosmicMind/Samples/tree/master/
Projects/Programmatic
/PhotoCollection
)
project.

...
...
Sources/Motion.swift
View file @
abc65458
...
...
@@ -615,26 +615,26 @@ extension Motion {
snapshotAnimations
.
append
(
Motion
.
transform
(
transform
:
to
.
motionTransform
))
snapshotAnimations
.
append
(
Motion
.
background
(
color
:
to
.
backgroundColor
??
.
clear
))
if
let
v
=
to
.
shadowPath
{
if
let
v
=
to
.
layer
.
shadowPath
{
snapshotAnimations
.
append
(
Motion
.
shadow
(
path
:
v
))
}
if
let
path
=
to
.
shadowPath
{
if
let
path
=
to
.
layer
.
shadowPath
{
let
shadowPath
=
Motion
.
shadow
(
path
:
path
)
shadowPath
.
fromValue
=
fromView
.
shadowPath
shadowPath
.
fromValue
=
fromView
.
layer
.
shadowPath
snapshotAnimations
.
append
(
shadowPath
)
}
let
shadowOffset
=
Motion
.
shadow
(
offset
:
to
.
shadowOffset
)
shadowOffset
.
fromValue
=
fromView
.
shadowOffset
let
shadowOffset
=
Motion
.
shadow
(
offset
:
to
.
layer
.
shadowOffset
)
shadowOffset
.
fromValue
=
fromView
.
layer
.
shadowOffset
snapshotAnimations
.
append
(
shadowOffset
)
let
shadowOpacity
=
Motion
.
shadow
(
opacity
:
to
.
shadowOpacity
)
shadowOpacity
.
fromValue
=
fromView
.
shadowOpacity
let
shadowOpacity
=
Motion
.
shadow
(
opacity
:
to
.
layer
.
shadowOpacity
)
shadowOpacity
.
fromValue
=
fromView
.
layer
.
shadowOpacity
snapshotAnimations
.
append
(
shadowOpacity
)
let
shadowRadius
=
Motion
.
shadow
(
radius
:
to
.
shadowRadius
)
shadowRadius
.
fromValue
=
fromView
.
shadowRadius
let
shadowRadius
=
Motion
.
shadow
(
radius
:
to
.
layer
.
shadowRadius
)
shadowRadius
.
fromValue
=
fromView
.
layer
.
shadowRadius
snapshotAnimations
.
append
(
shadowRadius
)
snapshotChildAnimations
.
append
(
cornerRadiusAnimation
)
...
...
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