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
98166c9a
Unverified
Commit
98166c9a
authored
Apr 22, 2017
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated Display to DisplayStyle and updated corresponding properties
parent
05e188df
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
36 deletions
+16
-36
Material.xcodeproj/project.pbxproj
+6
-6
Sources/iOS/Capture/CaptureController.swift
+1
-1
Sources/iOS/DisplayStyle.swift
+2
-2
Sources/iOS/ImageCard.swift
+1
-1
Sources/iOS/SearchBarController.swift
+2
-12
Sources/iOS/StatusBarController.swift
+2
-2
Sources/iOS/ToolbarController.swift
+2
-12
No files found.
Material.xcodeproj/project.pbxproj
View file @
98166c9a
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
9617B0871DFCA8CF00410F8F
/* PageTabBarController.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
963FBF071D669D14008F8512
/* PageTabBarController.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9617B0871DFCA8CF00410F8F
/* PageTabBarController.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
963FBF071D669D14008F8512
/* PageTabBarController.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9617B0881DFCA8CF00410F8F
/* PhotoLibrary.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96717B161DBE6B1800DA84DB
/* PhotoLibrary.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9617B0881DFCA8CF00410F8F
/* PhotoLibrary.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96717B161DBE6B1800DA84DB
/* PhotoLibrary.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9617B0891DFCA8CF00410F8F
/* PhotoLibraryController.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96717B171DBE6B1800DA84DB
/* PhotoLibraryController.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9617B0891DFCA8CF00410F8F
/* PhotoLibraryController.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96717B171DBE6B1800DA84DB
/* PhotoLibraryController.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9617B08A1DFCA8CF00410F8F
/* Display
.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9626CA961DAB53A8003E2611
/* Display
.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9617B08A1DFCA8CF00410F8F
/* Display
Style.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9626CA961DAB53A8003E2611
/* DisplayStyle
.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9617B08B1DFCA8CF00410F8F
/* Screen.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
961E6BE11DDA2AF3004E6C93
/* Screen.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9617B08B1DFCA8CF00410F8F
/* Screen.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
961E6BE11DDA2AF3004E6C93
/* Screen.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9617B08C1DFCA8CF00410F8F
/* SearchBar.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96BCB7951CB40DC500C806FE
/* SearchBar.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9617B08C1DFCA8CF00410F8F
/* SearchBar.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96BCB7951CB40DC500C806FE
/* SearchBar.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9617B08D1DFCA8CF00410F8F
/* SearchBarController.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96BCB7961CB40DC500C806FE
/* SearchBarController.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9617B08D1DFCA8CF00410F8F
/* SearchBarController.swift in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96BCB7961CB40DC500C806FE
/* SearchBarController.swift */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
965E81131DD4D5C800D61E4B
/* NavigationDrawerController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96BCB7971CB40DC500C806FE
/* NavigationDrawerController.swift */
;
};
965E81131DD4D5C800D61E4B
/* NavigationDrawerController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96BCB7971CB40DC500C806FE
/* NavigationDrawerController.swift */
;
};
965E81141DD4D5C800D61E4B
/* PhotoLibrary.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96717B161DBE6B1800DA84DB
/* PhotoLibrary.swift */
;
};
965E81141DD4D5C800D61E4B
/* PhotoLibrary.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96717B161DBE6B1800DA84DB
/* PhotoLibrary.swift */
;
};
965E81151DD4D5C800D61E4B
/* PhotoLibraryController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96717B171DBE6B1800DA84DB
/* PhotoLibraryController.swift */
;
};
965E81151DD4D5C800D61E4B
/* PhotoLibraryController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96717B171DBE6B1800DA84DB
/* PhotoLibraryController.swift */
;
};
965E81161DD4D5C800D61E4B
/* Display
.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9626CA961DAB53A8003E2611
/* Display
.swift */
;
};
965E81161DD4D5C800D61E4B
/* Display
Style.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9626CA961DAB53A8003E2611
/* DisplayStyle
.swift */
;
};
965E81171DD4D5C800D61E4B
/* RootController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96BCB7991CB40DC500C806FE
/* RootController.swift */
;
};
965E81171DD4D5C800D61E4B
/* RootController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
96BCB7991CB40DC500C806FE
/* RootController.swift */
;
};
965E81181DD4D5C800D61E4B
/* Snackbar.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
963FBEFC1D669510008F8512
/* Snackbar.swift */
;
};
965E81181DD4D5C800D61E4B
/* Snackbar.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
963FBEFC1D669510008F8512
/* Snackbar.swift */
;
};
965E81191DD4D5C800D61E4B
/* SnackbarController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
961EFC571D738FF600E84652
/* SnackbarController.swift */
;
};
965E81191DD4D5C800D61E4B
/* SnackbarController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
961EFC571D738FF600E84652
/* SnackbarController.swift */
;
};
...
@@ -198,7 +198,7 @@
...
@@ -198,7 +198,7 @@
961EFC571D738FF600E84652
/* SnackbarController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
SnackbarController.swift
;
sourceTree
=
"<group>"
;
};
961EFC571D738FF600E84652
/* SnackbarController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
SnackbarController.swift
;
sourceTree
=
"<group>"
;
};
961F18E71CD93E3E008927C5
/* ErrorTextField.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ErrorTextField.swift
;
sourceTree
=
"<group>"
;
};
961F18E71CD93E3E008927C5
/* ErrorTextField.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ErrorTextField.swift
;
sourceTree
=
"<group>"
;
};
96230AB71D6A520C00AF47DC
/* Divider.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
Divider.swift
;
sourceTree
=
"<group>"
;
};
96230AB71D6A520C00AF47DC
/* Divider.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
Divider.swift
;
sourceTree
=
"<group>"
;
};
9626CA961DAB53A8003E2611
/* Display
.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
Display
.swift
;
sourceTree
=
"<group>"
;
};
9626CA961DAB53A8003E2611
/* Display
Style.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
DisplayStyle
.swift
;
sourceTree
=
"<group>"
;
};
9626CB9A1DAD3D1D003E2611
/* HeightPreset.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
HeightPreset.swift
;
sourceTree
=
"<group>"
;
};
9626CB9A1DAD3D1D003E2611
/* HeightPreset.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
HeightPreset.swift
;
sourceTree
=
"<group>"
;
};
962864591D53FE3E00690B69
/* Material+UIWindow.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
"Material+UIWindow.swift"
;
sourceTree
=
"<group>"
;
};
962864591D53FE3E00690B69
/* Material+UIWindow.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
"Material+UIWindow.swift"
;
sourceTree
=
"<group>"
;
};
9628645E1D540AF300690B69
/* DynamicFontType.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
DynamicFontType.swift
;
sourceTree
=
"<group>"
;
};
9628645E1D540AF300690B69
/* DynamicFontType.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
DynamicFontType.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -350,7 +350,7 @@
...
@@ -350,7 +350,7 @@
9626CA951DAB5370003E2611
/* Root */
=
{
9626CA951DAB5370003E2611
/* Root */
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
9626CA961DAB53A8003E2611
/* Display.swift */
,
9626CA961DAB53A8003E2611
/* Display
Style
.swift */
,
96BCB7991CB40DC500C806FE
/* RootController.swift */
,
96BCB7991CB40DC500C806FE
/* RootController.swift */
,
);
);
name
=
Root
;
name
=
Root
;
...
@@ -820,7 +820,7 @@
...
@@ -820,7 +820,7 @@
9617B0871DFCA8CF00410F8F
/* PageTabBarController.swift in Headers */
,
9617B0871DFCA8CF00410F8F
/* PageTabBarController.swift in Headers */
,
9617B0881DFCA8CF00410F8F
/* PhotoLibrary.swift in Headers */
,
9617B0881DFCA8CF00410F8F
/* PhotoLibrary.swift in Headers */
,
9617B0891DFCA8CF00410F8F
/* PhotoLibraryController.swift in Headers */
,
9617B0891DFCA8CF00410F8F
/* PhotoLibraryController.swift in Headers */
,
9617B08A1DFCA8CF00410F8F
/* Display.swift in Headers */
,
9617B08A1DFCA8CF00410F8F
/* Display
Style
.swift in Headers */
,
9617B08B1DFCA8CF00410F8F
/* Screen.swift in Headers */
,
9617B08B1DFCA8CF00410F8F
/* Screen.swift in Headers */
,
9617B08C1DFCA8CF00410F8F
/* SearchBar.swift in Headers */
,
9617B08C1DFCA8CF00410F8F
/* SearchBar.swift in Headers */
,
9617B08D1DFCA8CF00410F8F
/* SearchBarController.swift in Headers */
,
9617B08D1DFCA8CF00410F8F
/* SearchBarController.swift in Headers */
,
...
@@ -943,7 +943,7 @@
...
@@ -943,7 +943,7 @@
965E81131DD4D5C800D61E4B
/* NavigationDrawerController.swift in Sources */
,
965E81131DD4D5C800D61E4B
/* NavigationDrawerController.swift in Sources */
,
965E81141DD4D5C800D61E4B
/* PhotoLibrary.swift in Sources */
,
965E81141DD4D5C800D61E4B
/* PhotoLibrary.swift in Sources */
,
965E81151DD4D5C800D61E4B
/* PhotoLibraryController.swift in Sources */
,
965E81151DD4D5C800D61E4B
/* PhotoLibraryController.swift in Sources */
,
965E81161DD4D5C800D61E4B
/* Display.swift in Sources */
,
965E81161DD4D5C800D61E4B
/* Display
Style
.swift in Sources */
,
965E81171DD4D5C800D61E4B
/* RootController.swift in Sources */
,
965E81171DD4D5C800D61E4B
/* RootController.swift in Sources */
,
965E81181DD4D5C800D61E4B
/* Snackbar.swift in Sources */
,
965E81181DD4D5C800D61E4B
/* Snackbar.swift in Sources */
,
96328B911E05B6B5009A4C90
/* Reminders.swift in Sources */
,
96328B911E05B6B5009A4C90
/* Reminders.swift in Sources */
,
...
...
Sources/iOS/Capture/CaptureController.swift
View file @
98166c9a
...
@@ -71,7 +71,7 @@ open class CaptureController: ToolbarController {
...
@@ -71,7 +71,7 @@ open class CaptureController: ToolbarController {
*/
*/
open
override
func
prepare
()
{
open
override
func
prepare
()
{
super
.
prepare
()
super
.
prepare
()
toolbarDisplay
=
.
full
displayStyle
=
.
full
view
.
backgroundColor
=
.
black
view
.
backgroundColor
=
.
black
prepareStatusBar
()
prepareStatusBar
()
...
...
Sources/iOS/Display.swift
→
Sources/iOS/Display
Style
.swift
View file @
98166c9a
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
import
UIKit
import
UIKit
@objc(Display)
@objc(Display
Style
)
public
enum
Display
:
Int
{
public
enum
Display
Style
:
Int
{
case
partial
case
partial
case
full
case
full
}
}
Sources/iOS/ImageCard.swift
View file @
98166c9a
...
@@ -42,7 +42,7 @@ open class ImageCard: Card {
...
@@ -42,7 +42,7 @@ open class ImageCard: Card {
display the imageView to the full view
display the imageView to the full view
bounds.
bounds.
*/
*/
open
var
imageViewDisplay
=
Display
.
partial
{
open
var
displayStyle
=
DisplayStyle
.
partial
{
didSet
{
didSet
{
layoutSubviews
()
layoutSubviews
()
}
}
...
...
Sources/iOS/SearchBarController.swift
View file @
98166c9a
...
@@ -49,17 +49,6 @@ extension UIViewController {
...
@@ -49,17 +49,6 @@ extension UIViewController {
}
}
open
class
SearchBarController
:
StatusBarController
{
open
class
SearchBarController
:
StatusBarController
{
/**
A Display value to indicate whether or not to
display the rootViewController to the full view
bounds, or up to the searchBar height.
*/
open
var
searchBarDisplay
=
Display
.
partial
{
didSet
{
layoutSubviews
()
}
}
/// Reference to the SearchBar.
/// Reference to the SearchBar.
@IBInspectable
@IBInspectable
open
let
searchBar
=
SearchBar
()
open
let
searchBar
=
SearchBar
()
...
@@ -72,7 +61,7 @@ open class SearchBarController: StatusBarController {
...
@@ -72,7 +61,7 @@ open class SearchBarController: StatusBarController {
searchBar
.
y
=
y
searchBar
.
y
=
y
searchBar
.
width
=
view
.
width
searchBar
.
width
=
view
.
width
switch
searchBarDisplay
{
switch
displayStyle
{
case
.
partial
:
case
.
partial
:
let
h
=
y
+
searchBar
.
height
let
h
=
y
+
searchBar
.
height
rootViewController
.
view
.
y
=
h
rootViewController
.
view
.
y
=
h
...
@@ -91,6 +80,7 @@ open class SearchBarController: StatusBarController {
...
@@ -91,6 +80,7 @@ open class SearchBarController: StatusBarController {
*/
*/
open
override
func
prepare
()
{
open
override
func
prepare
()
{
super
.
prepare
()
super
.
prepare
()
displayStyle
=
.
partial
prepareStatusBar
()
prepareStatusBar
()
prepareSearchBar
()
prepareSearchBar
()
}
}
...
...
Sources/iOS/StatusBarController.swift
View file @
98166c9a
...
@@ -54,7 +54,7 @@ open class StatusBarController: RootController {
...
@@ -54,7 +54,7 @@ open class StatusBarController: RootController {
display the rootViewController to the full view
display the rootViewController to the full view
bounds, or up to the toolbar height.
bounds, or up to the toolbar height.
*/
*/
open
var
statusBarDisplay
=
Display
.
full
{
open
var
displayStyle
=
DisplayStyle
.
full
{
didSet
{
didSet
{
layoutSubviews
()
layoutSubviews
()
}
}
...
@@ -100,7 +100,7 @@ open class StatusBarController: RootController {
...
@@ -100,7 +100,7 @@ open class StatusBarController: RootController {
statusBar
.
width
=
view
.
width
statusBar
.
width
=
view
.
width
switch
statusBarDisplay
{
switch
displayStyle
{
case
.
partial
:
case
.
partial
:
let
h
=
statusBar
.
height
let
h
=
statusBar
.
height
rootViewController
.
view
.
y
=
h
rootViewController
.
view
.
y
=
h
...
...
Sources/iOS/ToolbarController.swift
View file @
98166c9a
...
@@ -69,17 +69,6 @@ public protocol ToolbarControllerDelegate {
...
@@ -69,17 +69,6 @@ public protocol ToolbarControllerDelegate {
@objc(ToolbarController)
@objc(ToolbarController)
open
class
ToolbarController
:
StatusBarController
{
open
class
ToolbarController
:
StatusBarController
{
/**
A Display value to indicate whether or not to
display the rootViewController to the full view
bounds, or up to the toolbar height.
*/
open
var
toolbarDisplay
=
Display
.
partial
{
didSet
{
layoutSubviews
()
}
}
/// Reference to the Toolbar.
/// Reference to the Toolbar.
@IBInspectable
@IBInspectable
open
let
toolbar
=
Toolbar
()
open
let
toolbar
=
Toolbar
()
...
@@ -186,7 +175,7 @@ open class ToolbarController: StatusBarController {
...
@@ -186,7 +175,7 @@ open class ToolbarController: StatusBarController {
toolbar
.
y
=
y
toolbar
.
y
=
y
toolbar
.
width
=
view
.
width
toolbar
.
width
=
view
.
width
switch
toolbarDisplay
{
switch
displayStyle
{
case
.
partial
:
case
.
partial
:
let
h
=
y
+
toolbar
.
height
let
h
=
y
+
toolbar
.
height
rootViewController
.
view
.
y
=
h
rootViewController
.
view
.
y
=
h
...
@@ -205,6 +194,7 @@ open class ToolbarController: StatusBarController {
...
@@ -205,6 +194,7 @@ open class ToolbarController: StatusBarController {
*/
*/
open
override
func
prepare
()
{
open
override
func
prepare
()
{
super
.
prepare
()
super
.
prepare
()
displayStyle
=
.
partial
prepareStatusBar
()
prepareStatusBar
()
prepareToolbar
()
prepareToolbar
()
}
}
...
...
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