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
ebefc167
Commit
ebefc167
authored
May 16, 2016
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working on Toolbar dynamic frame
parent
22b31595
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
154 deletions
+0
-154
Material.xcodeproj/project.pbxproj
+0
-20
Sources/iOS/MTextView.swift
+0
-0
Sources/iOS/MaterialEditorViewController.swift
+0
-65
Sources/iOS/MaterialNoteViewController.swift
+0
-69
No files found.
Material.xcodeproj/project.pbxproj
View file @
ebefc167
...
...
@@ -15,9 +15,6 @@
9660162A1CB2F04E00AAB661
/* Material.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96D88C091C1328D800B91418
/* Material.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9679CEAB1CC69E080021685B
/* Material+UIImage+TintColor.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9679CEAA1CC69E080021685B
/* Material+UIImage+TintColor.swift */
;
};
96815B381CA07BA20006CBE2
/* MaterialViewTests.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
967887881C9777CB0037F6C9
/* MaterialViewTests.swift */
;
};
9692C9651CE92EA4008C2766
/* MaterialEditorViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9692C9641CE92EA4008C2766
/* MaterialEditorViewController.swift */
;
};
9692C9671CE92EB1008C2766
/* MaterialNoteViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9692C9661CE92EB1008C2766
/* MaterialNoteViewController.swift */
;
};
9692C9691CE964A8008C2766
/* MTextView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9692C9681CE964A8008C2766
/* MTextView.swift */
;
};
96977DA61CBB2E49000BEFC4
/* Material+UIImage+FilterBlur.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96977DA51CBB2E49000BEFC4
/* Material+UIImage+FilterBlur.swift */
;
};
96BCB7A11CB40DC500C806FE
/* BottomNavigationController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96BCB7581CB40DC500C806FE
/* BottomNavigationController.swift */
;
};
96BCB7A21CB40DC500C806FE
/* BottomTabBar.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96BCB7591CB40DC500C806FE
/* BottomTabBar.swift */
;
};
...
...
@@ -207,9 +204,6 @@
9660161C1CB2ED6C00AAB661
/* Material OSX Tests.xctest */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
wrapper.cfbundle
;
includeInIndex
=
0
;
path
=
"Material OSX Tests.xctest"
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
967887881C9777CB0037F6C9
/* MaterialViewTests.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
MaterialViewTests.swift
;
sourceTree
=
"<group>"
;
};
9679CEAA1CC69E080021685B
/* Material+UIImage+TintColor.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
"Material+UIImage+TintColor.swift"
;
sourceTree
=
"<group>"
;
};
9692C9641CE92EA4008C2766
/* MaterialEditorViewController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
MaterialEditorViewController.swift
;
sourceTree
=
"<group>"
;
};
9692C9661CE92EB1008C2766
/* MaterialNoteViewController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
MaterialNoteViewController.swift
;
sourceTree
=
"<group>"
;
};
9692C9681CE964A8008C2766
/* MTextView.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
MTextView.swift
;
sourceTree
=
"<group>"
;
};
96977DA51CBB2E49000BEFC4
/* Material+UIImage+FilterBlur.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
"Material+UIImage+FilterBlur.swift"
;
sourceTree
=
"<group>"
;
};
96BCB7581CB40DC500C806FE
/* BottomNavigationController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
BottomNavigationController.swift
;
sourceTree
=
"<group>"
;
};
96BCB7591CB40DC500C806FE
/* BottomTabBar.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
BottomTabBar.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -357,15 +351,6 @@
path
=
Tests
;
sourceTree
=
"<group>"
;
};
9692C9631CE92E84008C2766
/* Editor */
=
{
isa
=
PBXGroup
;
children
=
(
9692C9641CE92EA4008C2766
/* MaterialEditorViewController.swift */
,
9692C9661CE92EB1008C2766
/* MaterialNoteViewController.swift */
,
);
name
=
Editor
;
sourceTree
=
"<group>"
;
};
96BCB7571CB40DC500C806FE
/* iOS */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -376,7 +361,6 @@
96BCB8051CB40F9C00C806FE
/* Collection */
,
96BCB8001CB40F0300C806FE
/* Color */
,
96BCB80B1CB410CC00C806FE
/* Device */
,
9692C9631CE92E84008C2766
/* Editor */
,
96BCB80A1CB410A100C806FE
/* Extension */
,
96BCB8071CB4101C00C806FE
/* Font */
,
96BCB8081CB4105E00C806FE
/* Icon */
,
...
...
@@ -602,7 +586,6 @@
961F18E71CD93E3E008927C5
/* ErrorTextField.swift */
,
96BCB79D1CB40DC500C806FE
/* TextStorage.swift */
,
96BCB79E1CB40DC500C806FE
/* TextView.swift */
,
9692C9681CE964A8008C2766
/* MTextView.swift */
,
);
name
=
Text
;
sourceTree
=
"<group>"
;
...
...
@@ -891,7 +874,6 @@
files
=
(
96BCB7C01CB40DC500C806FE
/* MaterialDataSourceItem.swift in Sources */
,
96BCB7AC1CB40DC500C806FE
/* Material+Obj-C.swift in Sources */
,
9692C9691CE964A8008C2766
/* MTextView.swift in Sources */
,
9679CEAB1CC69E080021685B
/* Material+UIImage+TintColor.swift in Sources */
,
9658F2171CD6FA4700B902C1
/* IconButton.swift in Sources */
,
96BCB7BB1CB40DC500C806FE
/* MaterialCollectionViewCell.swift in Sources */
,
...
...
@@ -906,7 +888,6 @@
96BCB7CA1CB40DC500C806FE
/* MaterialLayout.swift in Sources */
,
96BCB7D11CB40DC500C806FE
/* MaterialSwitch.swift in Sources */
,
96BCB7BA1CB40DC500C806FE
/* MaterialCollectionView.swift in Sources */
,
9692C9671CE92EB1008C2766
/* MaterialNoteViewController.swift in Sources */
,
96BCB7A31CB40DC500C806FE
/* CapturePreview.swift in Sources */
,
96BCB7BC1CB40DC500C806FE
/* MaterialCollectionViewDataSource.swift in Sources */
,
96BCB7C71CB40DC500C806FE
/* MaterialKeyframeAnimation.swift in Sources */
,
...
...
@@ -939,7 +920,6 @@
96BCB7DE1CB40DC500C806FE
/* SearchBar.swift in Sources */
,
96BCB7B11CB40DC500C806FE
/* Material+UIImage+Crop.swift in Sources */
,
96BCB7B81CB40DC500C806FE
/* MaterialBorder.swift in Sources */
,
9692C9651CE92EA4008C2766
/* MaterialEditorViewController.swift in Sources */
,
96BCB7A61CB40DC500C806FE
/* CardView.swift in Sources */
,
96BCB7C91CB40DC500C806FE
/* MaterialLayer.swift in Sources */
,
96BCB7E21CB40DC500C806FE
/* StatusBarViewController.swift in Sources */
,
...
...
Sources/iOS/MTextView.swift
deleted
100644 → 0
View file @
22b31595
This diff is collapsed.
Click to expand it.
Sources/iOS/MaterialEditorViewController.swift
deleted
100644 → 0
View file @
22b31595
/*
* Copyright (C) 2015 - 2016, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.io>.
* 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 Material 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
public
class
MaterialEditorViewController
:
ToolbarController
{
/**
An initializer that initializes the object with a NSCoder object.
- Parameter aDecoder: A NSCoder instance.
*/
public
required
init
?(
coder
aDecoder
:
NSCoder
)
{
super
.
init
(
coder
:
aDecoder
)
}
/// Initializer used for default setup.
public
init
()
{
super
.
init
(
rootViewController
:
MaterialNoteViewController
())
}
/**
Prepares the view instance when intialized. When subclassing,
it is recommended to override the prepareView method
to initialize property values and other setup operations.
The super.prepareView method should always be called immediately
when subclassing.
*/
public
override
func
prepareView
()
{
super
.
prepareView
()
view
.
backgroundColor
=
MaterialColor
.
white
prepareToolbar
()
}
/// Prepares the toolbar.
private
func
prepareToolbar
()
{
toolbarController
?
.
toolbar
.
depth
=
.
None
}
}
\ No newline at end of file
Sources/iOS/MaterialNoteViewController.swift
deleted
100644 → 0
View file @
22b31595
/*
* Copyright (C) 2015 - 2016, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.io>.
* 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 Material 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
public
class
MaterialNoteViewController
:
UIViewController
{
/// Reference to the textView.
public
private(set)
var
textView
:
MTextView
!
public
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
prepareView
()
}
public
override
func
viewWillDisappear
(
animated
:
Bool
)
{
super
.
viewWillDisappear
(
animated
)
textView
.
resignFirstResponder
()
}
public
override
func
viewWillLayoutSubviews
()
{
super
.
viewWillLayoutSubviews
()
layoutTextView
()
}
/// Prepares the view.
public
func
prepareView
()
{
view
.
backgroundColor
=
MaterialColor
.
white
prepareTextView
()
}
/// Layout the textView.
public
func
layoutTextView
()
{
textView
.
frame
=
view
.
bounds
}
/// Prepares the textView.
private
func
prepareTextView
()
{
textView
=
MTextView
()
textView
.
placeholder
=
"Placeholder"
view
.
addSubview
(
textView
)
}
}
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