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
33a575e0
Commit
33a575e0
authored
Apr 04, 2016
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added Material OSX target
parent
6a47fbca
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
+14
-14
Material.xcodeproj/project.pbxproj
+0
-0
Material.xcodeproj/xcshareddata/xcschemes/Material iOS.xcscheme
+5
-5
Sources/Material.h
+1
-1
Sources/TextField.swift
+8
-8
No files found.
Material.xcodeproj/project.pbxproj
View file @
33a575e0
This diff is collapsed.
Click to expand it.
Material.xcodeproj/xcshareddata/xcschemes/Material.xcscheme
→
Material.xcodeproj/xcshareddata/xcschemes/Material
iOS
.xcscheme
View file @
33a575e0
...
...
@@ -16,7 +16,7 @@
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"963832351B88DFD80015F710"
BuildableName =
"Material.framework"
BlueprintName =
"Material"
BlueprintName =
"Material
iOS
"
ReferencedContainer =
"container:Material.xcodeproj"
>
</BuildableReference>
</BuildActionEntry>
...
...
@@ -34,7 +34,7 @@
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"963832401B88DFD80015F710"
BuildableName =
"Material.xctest"
BlueprintName =
"MaterialTests"
BlueprintName =
"Material
iOS
Tests"
ReferencedContainer =
"container:Material.xcodeproj"
>
</BuildableReference>
</TestableReference>
...
...
@@ -44,7 +44,7 @@
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"963832351B88DFD80015F710"
BuildableName =
"Material.framework"
BlueprintName =
"Material"
BlueprintName =
"Material
iOS
"
ReferencedContainer =
"container:Material.xcodeproj"
>
</BuildableReference>
</MacroExpansion>
...
...
@@ -66,7 +66,7 @@
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"963832351B88DFD80015F710"
BuildableName =
"Material.framework"
BlueprintName =
"Material"
BlueprintName =
"Material
iOS
"
ReferencedContainer =
"container:Material.xcodeproj"
>
</BuildableReference>
</MacroExpansion>
...
...
@@ -84,7 +84,7 @@
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"963832351B88DFD80015F710"
BuildableName =
"Material.framework"
BlueprintName =
"Material"
BlueprintName =
"Material
iOS
"
ReferencedContainer =
"container:Material.xcodeproj"
>
</BuildableReference>
</MacroExpansion>
...
...
Sources/Material.h
View file @
33a575e0
...
...
@@ -28,7 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#import <
UIKit/UIKit
.h>
#import <
Foundation/Foundation
.h>
//! Project version number for Material.
FOUNDATION_EXPORT
double
MaterialVersionNumber
;
...
...
Sources/TextField.swift
View file @
33a575e0
...
...
@@ -592,9 +592,9 @@ public class TextField : UITextField {
}
else
{
v
.
alpha
=
0
}
addTarget
(
self
,
action
:
"textFieldDidBegin"
,
forControlEvents
:
.
EditingDidBegin
)
addTarget
(
self
,
action
:
"textFieldDidChange"
,
forControlEvents
:
.
EditingChanged
)
addTarget
(
self
,
action
:
"textFieldDidEnd"
,
forControlEvents
:
.
EditingDidEnd
)
addTarget
(
self
,
action
:
#selector(
textFieldDidBegin
)
,
forControlEvents
:
.
EditingDidBegin
)
addTarget
(
self
,
action
:
#selector(
textFieldDidChange
)
,
forControlEvents
:
.
EditingChanged
)
addTarget
(
self
,
action
:
#selector(
textFieldDidEnd
)
,
forControlEvents
:
.
EditingDidEnd
)
}
}
...
...
@@ -609,11 +609,11 @@ public class TextField : UITextField {
showDetailLabel
()
}
if
nil
==
titleLabel
{
addTarget
(
self
,
action
:
"textFieldDidBegin"
,
forControlEvents
:
.
EditingDidBegin
)
addTarget
(
self
,
action
:
"textFieldDidChange"
,
forControlEvents
:
.
EditingChanged
)
addTarget
(
self
,
action
:
"textFieldDidEnd"
,
forControlEvents
:
.
EditingDidEnd
)
addTarget
(
self
,
action
:
#selector(
textFieldDidBegin
)
,
forControlEvents
:
.
EditingDidBegin
)
addTarget
(
self
,
action
:
#selector(
textFieldDidChange
)
,
forControlEvents
:
.
EditingChanged
)
addTarget
(
self
,
action
:
#selector(
textFieldDidEnd
)
,
forControlEvents
:
.
EditingDidEnd
)
}
addTarget
(
self
,
action
:
"textFieldValueChanged"
,
forControlEvents
:
.
ValueChanged
)
addTarget
(
self
,
action
:
#selector(
textFieldValueChanged
)
,
forControlEvents
:
.
ValueChanged
)
}
}
...
...
@@ -632,7 +632,7 @@ public class TextField : UITextField {
clearButton
.
tintColor
=
MaterialColor
.
grey
.
base
clearButton
.
setImage
(
image
,
forState
:
.
Normal
)
clearButton
.
setImage
(
image
,
forState
:
.
Highlighted
)
clearButton
.
addTarget
(
self
,
action
:
"handleClearButton"
,
forControlEvents
:
.
TouchUpInside
)
clearButton
.
addTarget
(
self
,
action
:
#selector(
handleClearButton
)
,
forControlEvents
:
.
TouchUpInside
)
clearButtonMode
=
.
Never
rightViewMode
=
.
WhileEditing
rightView
=
clearButton
...
...
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