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
41f34e42
Unverified
Commit
41f34e42
authored
Jan 15, 2017
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
development: adding presentations to MotionTransition
parent
9ee829f1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
162 additions
and
25 deletions
+162
-25
Sources/iOS/CollectionViewController.swift
+3
-2
Sources/iOS/MotionTransition.swift
+159
-23
No files found.
Sources/iOS/CollectionViewController.swift
View file @
41f34e42
...
@@ -58,7 +58,7 @@ extension UIViewController {
...
@@ -58,7 +58,7 @@ extension UIViewController {
}
}
}
}
open
class
CollectionViewController
:
UI
ViewController
{
open
class
CollectionViewController
:
MotionTransition
ViewController
{
/// A reference to a Reminder.
/// A reference to a Reminder.
open
let
collectionView
=
CollectionView
()
open
let
collectionView
=
CollectionView
()
...
@@ -81,7 +81,8 @@ open class CollectionViewController: UIViewController {
...
@@ -81,7 +81,8 @@ open class CollectionViewController: UIViewController {
The super.prepareView method should always be called immediately
The super.prepareView method should always be called immediately
when subclassing.
when subclassing.
*/
*/
open
func
prepare
()
{
open
override
func
prepare
()
{
super
.
prepare
()
view
.
clipsToBounds
=
true
view
.
clipsToBounds
=
true
view
.
backgroundColor
=
.
white
view
.
backgroundColor
=
.
white
view
.
contentScaleFactor
=
Screen
.
scale
view
.
contentScaleFactor
=
Screen
.
scale
...
...
Sources/iOS/MotionTransition.swift
View file @
41f34e42
This diff is collapsed.
Click to expand it.
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