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
d60987ad
Unverified
Commit
d60987ad
authored
Sep 10, 2018
by
Daniel Dahan
Committed by
GitHub
Sep 10, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #50 from ConfusedVorlon/support_extension_squash
Support extension
parents
1d49a501
34bdecf5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
3 deletions
+50
-3
Motion.podspec
+0
-1
Motion.xcodeproj/project.pbxproj
+4
-0
Sources/Application.swift
+44
-0
Sources/Extensions/Motion+UIViewController.swift
+1
-1
Sources/Transition/MotionTransition+Complete.swift
+1
-1
No files found.
Motion.podspec
View file @
d60987ad
...
@@ -17,5 +17,4 @@ Pod::Spec.new do |s|
...
@@ -17,5 +17,4 @@ Pod::Spec.new do |s|
s
.
ios
.
source_files
=
'Sources/**/*.swift'
s
.
ios
.
source_files
=
'Sources/**/*.swift'
s
.
requires_arc
=
true
s
.
requires_arc
=
true
end
end
end
end
Motion.xcodeproj/project.pbxproj
View file @
d60987ad
...
@@ -87,6 +87,7 @@
...
@@ -87,6 +87,7 @@
96E409AB1F24F7570015A2B5
/* MotionPreprocessor.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96E409621F24F7370015A2B5
/* MotionPreprocessor.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
96E409AB1F24F7570015A2B5
/* MotionPreprocessor.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96E409621F24F7370015A2B5
/* MotionPreprocessor.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
96E409AC1F24F7570015A2B5
/* SourcePreprocessor.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96E409631F24F7370015A2B5
/* SourcePreprocessor.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
96E409AC1F24F7570015A2B5
/* SourcePreprocessor.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96E409631F24F7370015A2B5
/* SourcePreprocessor.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
96E409AD1F24F7570015A2B5
/* TransitionPreprocessor.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96E409641F24F7370015A2B5
/* TransitionPreprocessor.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
96E409AD1F24F7570015A2B5
/* TransitionPreprocessor.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96E409641F24F7370015A2B5
/* TransitionPreprocessor.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
D4A2ECE521467454003162B4
/* Application.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
D4A2ECE421467454003162B4
/* Application.swift */
;
};
/* End PBXBuildFile section */
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
/* Begin PBXFileReference section */
...
@@ -136,6 +137,7 @@
...
@@ -136,6 +137,7 @@
96E409641F24F7370015A2B5
/* TransitionPreprocessor.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
TransitionPreprocessor.swift
;
sourceTree
=
"<group>"
;
};
96E409641F24F7370015A2B5
/* TransitionPreprocessor.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
TransitionPreprocessor.swift
;
sourceTree
=
"<group>"
;
};
96E409BB1F24FC210015A2B5
/* Info.plist */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.plist.xml
;
path
=
Info.plist
;
sourceTree
=
"<group>"
;
};
96E409BB1F24FC210015A2B5
/* Info.plist */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.plist.xml
;
path
=
Info.plist
;
sourceTree
=
"<group>"
;
};
96E409BC1F24FC300015A2B5
/* LICENSE */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text
;
path
=
LICENSE
;
sourceTree
=
"<group>"
;
};
96E409BC1F24FC300015A2B5
/* LICENSE */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text
;
path
=
LICENSE
;
sourceTree
=
"<group>"
;
};
D4A2ECE421467454003162B4
/* Application.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
Application.swift
;
sourceTree
=
"<group>"
;
};
/* End PBXFileReference section */
/* End PBXFileReference section */
/* Begin PBXGroup section */
/* Begin PBXGroup section */
...
@@ -178,6 +180,7 @@
...
@@ -178,6 +180,7 @@
96E409BB1F24FC210015A2B5
/* Info.plist */
,
96E409BB1F24FC210015A2B5
/* Info.plist */
,
96E409BC1F24FC300015A2B5
/* LICENSE */
,
96E409BC1F24FC300015A2B5
/* LICENSE */
,
96E4094F1F24F7370015A2B5
/* Motion.h */
,
96E4094F1F24F7370015A2B5
/* Motion.h */
,
D4A2ECE421467454003162B4
/* Application.swift */
,
965FE9681FDDA1F20098BDD0
/* MotionViewOrderStrategy.swift */
,
965FE9681FDDA1F20098BDD0
/* MotionViewOrderStrategy.swift */
,
96E409511F24F7370015A2B5
/* MotionAnimation.swift */
,
96E409511F24F7370015A2B5
/* MotionAnimation.swift */
,
96E409521F24F7370015A2B5
/* MotionAnimationState.swift */
,
96E409521F24F7370015A2B5
/* MotionAnimationState.swift */
,
...
@@ -367,6 +370,7 @@
...
@@ -367,6 +370,7 @@
96E409761F24F7370015A2B5
/* MotionAnimation.swift in Sources */
,
96E409761F24F7370015A2B5
/* MotionAnimation.swift in Sources */
,
965FE9A31FE4407D0098BDD0
/* MotionTransition+Interactive.swift in Sources */
,
965FE9A31FE4407D0098BDD0
/* MotionTransition+Interactive.swift in Sources */
,
96E4096B1F24F7370015A2B5
/* Motion+Array.swift in Sources */
,
96E4096B1F24F7370015A2B5
/* Motion+Array.swift in Sources */
,
D4A2ECE521467454003162B4
/* Application.swift in Sources */
,
96E409721F24F7370015A2B5
/* Motion+UIViewController.swift in Sources */
,
96E409721F24F7370015A2B5
/* Motion+UIViewController.swift in Sources */
,
96E4097E1F24F7370015A2B5
/* MotionSnapshotType.swift in Sources */
,
96E4097E1F24F7370015A2B5
/* MotionSnapshotType.swift in Sources */
,
965FE9691FDDA1F20098BDD0
/* MotionViewOrderStrategy.swift in Sources */
,
965FE9691FDDA1F20098BDD0
/* MotionViewOrderStrategy.swift in Sources */
,
...
...
Sources/Application.swift
0 → 100644
View file @
d60987ad
/*
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of CosmicMind nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
import
UIKit
internal
class
Application
{
static
var
shared
:
UIApplication
{
let
sharedSelector
=
NSSelectorFromString
(
"sharedApplication"
)
guard
UIApplication
.
responds
(
to
:
sharedSelector
)
else
{
fatalError
(
"[Motion: Extensions cannot access Application]"
)
}
let
shared
=
UIApplication
.
perform
(
sharedSelector
)
return
shared
?
.
takeUnretainedValue
()
as!
UIApplication
}
}
Sources/Extensions/Motion+UIViewController.swift
View file @
d60987ad
...
@@ -322,7 +322,7 @@ extension UIViewController {
...
@@ -322,7 +322,7 @@ extension UIViewController {
next
.
view
.
window
?
.
addSubview
(
next
.
view
)
next
.
view
.
window
?
.
addSubview
(
next
.
view
)
guard
let
pvc
=
presentingVC
else
{
guard
let
pvc
=
presentingVC
else
{
UI
Application
.
shared
.
keyWindow
?
.
rootViewController
=
next
Application
.
shared
.
keyWindow
?
.
rootViewController
=
next
return
return
}
}
...
...
Sources/Transition/MotionTransition+Complete.swift
View file @
d60987ad
...
@@ -109,7 +109,7 @@ extension MotionTransition {
...
@@ -109,7 +109,7 @@ extension MotionTransition {
if
isPresenting
!=
isFinishing
,
!
isContainerController
{
if
isPresenting
!=
isFinishing
,
!
isContainerController
{
// Only happens when present a .overFullScreen view controller.
// Only happens when present a .overFullScreen view controller.
// bug: http://openradar.appspot.com/radar?id=5320103646199808
// bug: http://openradar.appspot.com/radar?id=5320103646199808
UI
Application
.
shared
.
keyWindow
?
.
addSubview
(
isPresenting
?
fv
:
tv
)
Application
.
shared
.
keyWindow
?
.
addSubview
(
isPresenting
?
fv
:
tv
)
}
}
}
}
...
...
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