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
e207c4f3
Commit
e207c4f3
authored
Jul 23, 2017
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trying another attempt to Motion file inclusion
parent
75ce2faa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
0 additions
and
63 deletions
+0
-63
Material.xcodeproj/project.pbxproj
+0
-0
Sources/iOS/Button.swift
+0
-1
Sources/iOS/CollectionReusableView.swift
+0
-1
Sources/iOS/CollectionViewCell.swift
+0
-1
Sources/iOS/Material+CALayer.swift
+0
-1
Sources/iOS/Material+MotionAnimation.swift
+0
-1
Sources/iOS/Material+Obj-C.swift
+0
-54
Sources/iOS/PulseAnimation.swift
+0
-1
Sources/iOS/PulseView.swift
+0
-1
Sources/iOS/SnackbarController.swift
+0
-1
Sources/iOS/TableViewCell.swift
+0
-1
No files found.
Material.xcodeproj/project.pbxproj
View file @
e207c4f3
This diff is collapsed.
Click to expand it.
Sources/iOS/Button.swift
View file @
e207c4f3
...
...
@@ -29,7 +29,6 @@
*/
import
UIKit
import
Motion
open
class
Button
:
UIButton
,
Pulseable
,
PulseableLayer
{
/**
...
...
Sources/iOS/CollectionReusableView.swift
View file @
e207c4f3
...
...
@@ -29,7 +29,6 @@
*/
import
UIKit
import
Motion
@objc(CollectionReusableView)
open
class
CollectionReusableView
:
UICollectionReusableView
,
Pulseable
,
PulseableLayer
{
...
...
Sources/iOS/CollectionViewCell.swift
View file @
e207c4f3
...
...
@@ -29,7 +29,6 @@
*/
import
UIKit
import
Motion
@objc(CollectionViewCell)
open
class
CollectionViewCell
:
UICollectionViewCell
,
Pulseable
,
PulseableLayer
{
...
...
Sources/iOS/Material+CALayer.swift
View file @
e207c4f3
...
...
@@ -29,7 +29,6 @@
*/
import
UIKit
import
Motion
fileprivate
class
MaterialLayer
{
/// A reference to the CALayer.
...
...
Sources/iOS/Material+MotionAnimation.swift
View file @
e207c4f3
...
...
@@ -29,7 +29,6 @@
*/
import
UIKit
import
Motion
public
extension
MotionAnimation
{
/**
...
...
Sources/iOS/Material+Obj-C.swift
deleted
100644 → 0
View file @
75ce2faa
/*
* The MIT License (MIT)
*
* Copyright (C) 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
internal
struct
AssociatedObject
{
/**
Gets the Obj-C reference for the instance object within the UIView extension.
- Parameter base: Base object.
- Parameter key: Memory key pointer.
- Parameter initializer: Object initializer.
- Returns: The associated reference for the initializer object.
*/
public
static
func
get
<
T
:
Any
>
(
base
:
Any
,
key
:
UnsafePointer
<
UInt8
>
,
initializer
:
()
->
T
)
->
T
{
if
let
v
=
objc_getAssociatedObject
(
base
,
key
)
as?
T
{
return
v
}
let
v
=
initializer
()
objc_setAssociatedObject
(
base
,
key
,
v
,
.
OBJC_ASSOCIATION_RETAIN
)
return
v
}
/**
Sets the Obj-C reference for the instance object within the UIView extension.
- Parameter base: Base object.
- Parameter key: Memory key pointer.
- Parameter value: The object instance to set for the associated object.
- Returns: The associated reference for the initializer object.
*/
public
static
func
set
<
T
:
Any
>
(
base
:
Any
,
key
:
UnsafePointer
<
UInt8
>
,
value
:
T
)
{
objc_setAssociatedObject
(
base
,
key
,
value
,
.
OBJC_ASSOCIATION_RETAIN
)
}
}
Sources/iOS/PulseAnimation.swift
View file @
e207c4f3
...
...
@@ -29,7 +29,6 @@
*/
import
UIKit
import
Motion
@objc(PulseAnimation)
public
enum
PulseAnimation
:
Int
{
...
...
Sources/iOS/PulseView.swift
View file @
e207c4f3
...
...
@@ -29,7 +29,6 @@
*/
import
UIKit
import
Motion
open
class
PulseView
:
View
,
Pulseable
,
PulseableLayer
{
/// A Pulse reference.
...
...
Sources/iOS/SnackbarController.swift
View file @
e207c4f3
...
...
@@ -29,7 +29,6 @@
*/
import
UIKit
import
Motion
@objc(SnackbarControllerDelegate)
public
protocol
SnackbarControllerDelegate
{
...
...
Sources/iOS/TableViewCell.swift
View file @
e207c4f3
...
...
@@ -29,7 +29,6 @@
*/
import
UIKit
import
Motion
open
class
TableViewCell
:
UITableViewCell
,
Pulseable
,
PulseableLayer
{
/**
...
...
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