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
22da2736
Commit
22da2736
authored
Aug 30, 2015
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor cleanups
parent
2989fe57
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Source/CapturePreview.swift
+1
-1
Source/SideNavController.swift
+2
-2
Source/TextView.swift
+2
-2
No files found.
Source/CapturePreview.swift
View file @
22da2736
...
@@ -194,7 +194,7 @@ public class Preview: UIView {
...
@@ -194,7 +194,7 @@ public class Preview: UIView {
//
//
private
func
viewWithColor
(
color
:
UIColor
)
->
UIView
{
private
func
viewWithColor
(
color
:
UIColor
)
->
UIView
{
let
view
:
UIView
=
UIView
(
frame
:
Preview
.
boxBounds
)
let
view
:
UIView
=
UIView
(
frame
:
Preview
.
boxBounds
)
view
.
backgroundColor
=
.
clearColor
()
view
.
backgroundColor
=
MaterialTheme
.
clear
.
color
view
.
layer
.
borderColor
=
color
.
CGColor
view
.
layer
.
borderColor
=
color
.
CGColor
view
.
layer
.
borderWidth
=
5
view
.
layer
.
borderWidth
=
5
view
.
hidden
=
true
view
.
hidden
=
true
...
...
Source/SideNavController.swift
View file @
22da2736
...
@@ -1213,7 +1213,7 @@ public class SideNavController: UIViewController, UIGestureRecognizerDelegate {
...
@@ -1213,7 +1213,7 @@ public class SideNavController: UIViewController, UIGestureRecognizerDelegate {
//
//
private
func
prepareMainContainer
()
{
private
func
prepareMainContainer
()
{
mainViewContainer
=
UIView
(
frame
:
view
.
bounds
)
mainViewContainer
=
UIView
(
frame
:
view
.
bounds
)
mainViewContainer
!.
backgroundColor
=
.
clearColor
()
mainViewContainer
!.
backgroundColor
=
MaterialTheme
.
clear
.
color
mainViewContainer
!.
autoresizingMask
=
.
FlexibleHeight
|
.
FlexibleWidth
mainViewContainer
!.
autoresizingMask
=
.
FlexibleHeight
|
.
FlexibleWidth
view
.
addSubview
(
mainViewContainer
!
)
view
.
addSubview
(
mainViewContainer
!
)
}
}
...
@@ -1272,7 +1272,7 @@ public class SideNavController: UIViewController, UIGestureRecognizerDelegate {
...
@@ -1272,7 +1272,7 @@ public class SideNavController: UIViewController, UIGestureRecognizerDelegate {
b
.
origin
.
x
=
originX
b
.
origin
.
x
=
originX
b
.
origin
.
y
=
originY
b
.
origin
.
y
=
originY
viewContainer
=
UIView
(
frame
:
b
)
viewContainer
=
UIView
(
frame
:
b
)
viewContainer
!.
backgroundColor
=
.
clearColor
()
viewContainer
!.
backgroundColor
=
MaterialTheme
.
clear
.
color
viewContainer
!.
autoresizingMask
=
.
FlexibleHeight
viewContainer
!.
autoresizingMask
=
.
FlexibleHeight
view
.
addSubview
(
viewContainer
!
)
view
.
addSubview
(
viewContainer
!
)
}
}
...
...
Source/TextView.swift
View file @
22da2736
...
@@ -140,14 +140,14 @@ public class TextView: UITextView {
...
@@ -140,14 +140,14 @@ public class TextView: UITextView {
// :description: Sets up the common initilized values.
// :description: Sets up the common initilized values.
//
//
private
func
setupView
()
{
private
func
setupView
()
{
backgroundColor
=
.
clearColor
()
backgroundColor
=
MaterialTheme
.
clear
.
color
textColor
=
MaterialTheme
.
black
.
color
textColor
=
MaterialTheme
.
black
.
color
label
.
font
=
font
label
.
font
=
font
label
.
textColor
=
MaterialTheme
.
blueGrey
.
lighten3
label
.
textColor
=
MaterialTheme
.
blueGrey
.
lighten3
label
.
textAlignment
=
textAlignment
label
.
textAlignment
=
textAlignment
label
.
text
=
placeholder
label
.
text
=
placeholder
label
.
numberOfLines
=
0
label
.
numberOfLines
=
0
label
.
backgroundColor
=
UIColor
.
clearColor
()
label
.
backgroundColor
=
MaterialTheme
.
clear
.
color
label
.
setTranslatesAutoresizingMaskIntoConstraints
(
false
)
label
.
setTranslatesAutoresizingMaskIntoConstraints
(
false
)
addSubview
(
label
)
addSubview
(
label
)
...
...
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