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
f1c4b4d9
Unverified
Commit
f1c4b4d9
authored
Oct 08, 2016
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storyboard-examples: updated BottomNavigationController Storyboard sample
parent
e147eb9a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
22 deletions
+27
-22
Examples/Storyboards/BottomNavigationController/BottomNavigationController/AudioViewController.swift
+3
-2
Examples/Storyboards/BottomNavigationController/BottomNavigationController/Base.lproj/Main.storyboard
+12
-12
Examples/Storyboards/BottomNavigationController/BottomNavigationController/PhotoViewController.swift
+3
-2
Examples/Storyboards/BottomNavigationController/BottomNavigationController/RemindersViewController.swift
+3
-2
Examples/Storyboards/BottomNavigationController/BottomNavigationController/SearchViewController.swift
+3
-2
Examples/Storyboards/BottomNavigationController/BottomNavigationController/VideoViewController.swift
+3
-2
No files found.
Examples/Storyboards/BottomNavigationController/BottomNavigationController/AudioViewController.swift
View file @
f1c4b4d9
...
@@ -32,13 +32,14 @@ import UIKit
...
@@ -32,13 +32,14 @@ import UIKit
import
Material
import
Material
class
AudioViewController
:
UIViewController
{
class
AudioViewController
:
UIViewController
{
convenience
init
(
)
{
required
init
?(
coder
aDecoder
:
NSCoder
)
{
s
elf
.
init
(
nibName
:
nil
,
bundle
:
nil
)
s
uper
.
init
(
coder
:
aDecoder
)
prepareTabBarItem
()
prepareTabBarItem
()
}
}
/// Prepare tabBarItem.
/// Prepare tabBarItem.
private
func
prepareTabBarItem
()
{
private
func
prepareTabBarItem
()
{
tabBarItem
.
title
=
nil
tabBarItem
.
image
=
Icon
.
cm
.
audioLibrary
?
.
tintWithColor
(
color
:
Color
.
blueGrey
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
tabBarItem
.
image
=
Icon
.
cm
.
audioLibrary
?
.
tintWithColor
(
color
:
Color
.
blueGrey
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
tabBarItem
.
selectedImage
=
Icon
.
cm
.
audioLibrary
?
.
tintWithColor
(
color
:
Color
.
blue
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
tabBarItem
.
selectedImage
=
Icon
.
cm
.
audioLibrary
?
.
tintWithColor
(
color
:
Color
.
blue
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
}
}
...
...
Examples/Storyboards/BottomNavigationController/BottomNavigationController/Base.lproj/Main.storyboard
View file @
f1c4b4d9
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"11201"
systemVersion=
"16A3
23
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
initialViewController=
"DWT-A5-eEA"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"11201"
systemVersion=
"16A3
13a
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
initialViewController=
"DWT-A5-eEA"
>
<dependencies>
<dependencies>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"11161"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"11161"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
</dependencies>
<scenes>
<scenes>
<!--
Item
-->
<!--
Audio View Controller
-->
<scene
sceneID=
"tne-QT-ifu"
>
<scene
sceneID=
"tne-QT-ifu"
>
<objects>
<objects>
<viewController
storyboardIdentifier=
"AudioViewController"
useStoryboardIdentifierAsRestorationIdentifier=
"YES"
id=
"BYZ-38-t0r"
customClass=
"AudioViewController"
customModule=
"BottomNavigationController"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
<viewController
storyboardIdentifier=
"AudioViewController"
useStoryboardIdentifierAsRestorationIdentifier=
"YES"
id=
"BYZ-38-t0r"
customClass=
"AudioViewController"
customModule=
"BottomNavigationController"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</view>
</view>
<tabBarItem
key=
"tabBarItem"
title=
"
Item
"
id=
"kjM-ON-xya"
/>
<tabBarItem
key=
"tabBarItem"
title=
""
id=
"kjM-ON-xya"
/>
</viewController>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"dkx-z0-nzr"
sceneMemberID=
"firstResponder"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"dkx-z0-nzr"
sceneMemberID=
"firstResponder"
/>
</objects>
</objects>
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
</objects>
</objects>
<point
key=
"canvasLocation"
x=
"300"
y=
"-664"
/>
<point
key=
"canvasLocation"
x=
"300"
y=
"-664"
/>
</scene>
</scene>
<!--
Item
-->
<!--
Reminders View Controller
-->
<scene
sceneID=
"6CE-Ax-jpB"
>
<scene
sceneID=
"6CE-Ax-jpB"
>
<objects>
<objects>
<viewController
storyboardIdentifier=
"RemindersViewController"
useStoryboardIdentifierAsRestorationIdentifier=
"YES"
id=
"pdq-VH-Zd8"
customClass=
"RemindersViewController"
customModule=
"BottomNavigationController"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
<viewController
storyboardIdentifier=
"RemindersViewController"
useStoryboardIdentifierAsRestorationIdentifier=
"YES"
id=
"pdq-VH-Zd8"
customClass=
"RemindersViewController"
customModule=
"BottomNavigationController"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
...
@@ -59,16 +59,16 @@
...
@@ -59,16 +59,16 @@
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</view>
</view>
<tabBarItem
key=
"tabBarItem"
title=
"
Item
"
id=
"STt-n6-3n0"
/>
<tabBarItem
key=
"tabBarItem"
title=
""
id=
"STt-n6-3n0"
/>
</viewController>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"XI1-T3-Gjo"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"XI1-T3-Gjo"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
</objects>
<point
key=
"canvasLocation"
x=
"1217"
y=
"-289"
/>
<point
key=
"canvasLocation"
x=
"1217"
y=
"-289"
/>
</scene>
</scene>
<!--
Item
-->
<!--
Search View Controller
-->
<scene
sceneID=
"Zhg-5m-84f"
>
<scene
sceneID=
"Zhg-5m-84f"
>
<objects>
<objects>
<viewController
storyboardIdentifier=
"SearchViewController"
useStoryboardIdentifierAsRestorationIdentifier=
"YES"
id=
"mur-LI-Nz5"
customClass=
"SearchViewController"
customModule=
"
Material
"
sceneMemberID=
"viewController"
>
<viewController
storyboardIdentifier=
"SearchViewController"
useStoryboardIdentifierAsRestorationIdentifier=
"YES"
id=
"mur-LI-Nz5"
customClass=
"SearchViewController"
customModule=
"
BottomNavigationController"
customModuleProvider=
"target
"
sceneMemberID=
"viewController"
>
<layoutGuides>
<layoutGuides>
<viewControllerLayoutGuide
type=
"top"
id=
"2vH-j9-N50"
/>
<viewControllerLayoutGuide
type=
"top"
id=
"2vH-j9-N50"
/>
<viewControllerLayoutGuide
type=
"bottom"
id=
"rx4-uJ-JTr"
/>
<viewControllerLayoutGuide
type=
"bottom"
id=
"rx4-uJ-JTr"
/>
...
@@ -78,13 +78,13 @@
...
@@ -78,13 +78,13 @@
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</view>
</view>
<tabBarItem
key=
"tabBarItem"
title=
"
Item
"
id=
"DYI-dv-2fD"
/>
<tabBarItem
key=
"tabBarItem"
title=
""
id=
"DYI-dv-2fD"
/>
</viewController>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"K9A-Dt-Rsf"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"K9A-Dt-Rsf"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
</objects>
<point
key=
"canvasLocation"
x=
"1217"
y=
"414"
/>
<point
key=
"canvasLocation"
x=
"1217"
y=
"414"
/>
</scene>
</scene>
<!--
Item
-->
<!--
Video View Controller
-->
<scene
sceneID=
"ZQj-ux-hv8"
>
<scene
sceneID=
"ZQj-ux-hv8"
>
<objects>
<objects>
<viewController
storyboardIdentifier=
"VideoViewController"
useStoryboardIdentifierAsRestorationIdentifier=
"YES"
id=
"OeN-A7-5FM"
customClass=
"VideoViewController"
customModule=
"BottomNavigationController"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
<viewController
storyboardIdentifier=
"VideoViewController"
useStoryboardIdentifierAsRestorationIdentifier=
"YES"
id=
"OeN-A7-5FM"
customClass=
"VideoViewController"
customModule=
"BottomNavigationController"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
...
@@ -97,13 +97,13 @@
...
@@ -97,13 +97,13 @@
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</view>
</view>
<tabBarItem
key=
"tabBarItem"
title=
"
Item
"
id=
"YHC-RR-Wsc"
/>
<tabBarItem
key=
"tabBarItem"
title=
""
id=
"YHC-RR-Wsc"
/>
</viewController>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"HGN-cL-D2G"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"HGN-cL-D2G"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
</objects>
<point
key=
"canvasLocation"
x=
"1217"
y=
"-1636"
/>
<point
key=
"canvasLocation"
x=
"1217"
y=
"-1636"
/>
</scene>
</scene>
<!--
Item
-->
<!--
Photo View Controller
-->
<scene
sceneID=
"iE0-fd-klF"
>
<scene
sceneID=
"iE0-fd-klF"
>
<objects>
<objects>
<viewController
storyboardIdentifier=
"PhotoViewController"
useStoryboardIdentifierAsRestorationIdentifier=
"YES"
id=
"W8C-ce-Cww"
customClass=
"PhotoViewController"
customModule=
"BottomNavigationController"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
<viewController
storyboardIdentifier=
"PhotoViewController"
useStoryboardIdentifierAsRestorationIdentifier=
"YES"
id=
"W8C-ce-Cww"
customClass=
"PhotoViewController"
customModule=
"BottomNavigationController"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</view>
</view>
<tabBarItem
key=
"tabBarItem"
title=
"
Item
"
id=
"4AZ-wr-K2G"
/>
<tabBarItem
key=
"tabBarItem"
title=
""
id=
"4AZ-wr-K2G"
/>
</viewController>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"y1l-TR-2xF"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"y1l-TR-2xF"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
</objects>
...
...
Examples/Storyboards/BottomNavigationController/BottomNavigationController/PhotoViewController.swift
View file @
f1c4b4d9
...
@@ -32,13 +32,14 @@ import UIKit
...
@@ -32,13 +32,14 @@ import UIKit
import
Material
import
Material
class
PhotoViewController
:
UIViewController
{
class
PhotoViewController
:
UIViewController
{
convenience
init
(
)
{
required
init
?(
coder
aDecoder
:
NSCoder
)
{
s
elf
.
init
(
nibName
:
nil
,
bundle
:
nil
)
s
uper
.
init
(
coder
:
aDecoder
)
prepareTabBarItem
()
prepareTabBarItem
()
}
}
/// Prepare tabBarItem.
/// Prepare tabBarItem.
private
func
prepareTabBarItem
()
{
private
func
prepareTabBarItem
()
{
tabBarItem
.
title
=
nil
tabBarItem
.
image
=
Icon
.
cm
.
photoCamera
?
.
tintWithColor
(
color
:
Color
.
blueGrey
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
tabBarItem
.
image
=
Icon
.
cm
.
photoCamera
?
.
tintWithColor
(
color
:
Color
.
blueGrey
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
tabBarItem
.
selectedImage
=
Icon
.
cm
.
photoCamera
?
.
tintWithColor
(
color
:
Color
.
blue
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
tabBarItem
.
selectedImage
=
Icon
.
cm
.
photoCamera
?
.
tintWithColor
(
color
:
Color
.
blue
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
}
}
...
...
Examples/Storyboards/BottomNavigationController/BottomNavigationController/RemindersViewController.swift
View file @
f1c4b4d9
...
@@ -32,13 +32,14 @@ import UIKit
...
@@ -32,13 +32,14 @@ import UIKit
import
Material
import
Material
class
RemindersViewController
:
UIViewController
{
class
RemindersViewController
:
UIViewController
{
convenience
init
(
)
{
required
init
?(
coder
aDecoder
:
NSCoder
)
{
s
elf
.
init
(
nibName
:
nil
,
bundle
:
nil
)
s
uper
.
init
(
coder
:
aDecoder
)
prepareTabBarItem
()
prepareTabBarItem
()
}
}
/// Prepare tabBarItem.
/// Prepare tabBarItem.
private
func
prepareTabBarItem
()
{
private
func
prepareTabBarItem
()
{
tabBarItem
.
title
=
nil
tabBarItem
.
image
=
Icon
.
cm
.
bell
?
.
tintWithColor
(
color
:
Color
.
blueGrey
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
tabBarItem
.
image
=
Icon
.
cm
.
bell
?
.
tintWithColor
(
color
:
Color
.
blueGrey
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
tabBarItem
.
selectedImage
=
Icon
.
cm
.
bell
?
.
tintWithColor
(
color
:
Color
.
blue
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
tabBarItem
.
selectedImage
=
Icon
.
cm
.
bell
?
.
tintWithColor
(
color
:
Color
.
blue
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
}
}
...
...
Examples/Storyboards/BottomNavigationController/BottomNavigationController/SearchViewController.swift
View file @
f1c4b4d9
...
@@ -32,13 +32,14 @@ import UIKit
...
@@ -32,13 +32,14 @@ import UIKit
import
Material
import
Material
class
SearchViewController
:
UIViewController
{
class
SearchViewController
:
UIViewController
{
convenience
init
(
)
{
required
init
?(
coder
aDecoder
:
NSCoder
)
{
s
elf
.
init
(
nibName
:
nil
,
bundle
:
nil
)
s
uper
.
init
(
coder
:
aDecoder
)
prepareTabBarItem
()
prepareTabBarItem
()
}
}
/// Prepare tabBarItem.
/// Prepare tabBarItem.
private
func
prepareTabBarItem
()
{
private
func
prepareTabBarItem
()
{
tabBarItem
.
title
=
nil
tabBarItem
.
image
=
Icon
.
cm
.
search
?
.
tintWithColor
(
color
:
Color
.
blueGrey
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
tabBarItem
.
image
=
Icon
.
cm
.
search
?
.
tintWithColor
(
color
:
Color
.
blueGrey
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
tabBarItem
.
selectedImage
=
Icon
.
cm
.
search
?
.
tintWithColor
(
color
:
Color
.
blue
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
tabBarItem
.
selectedImage
=
Icon
.
cm
.
search
?
.
tintWithColor
(
color
:
Color
.
blue
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
}
}
...
...
Examples/Storyboards/BottomNavigationController/BottomNavigationController/VideoViewController.swift
View file @
f1c4b4d9
...
@@ -32,13 +32,14 @@ import UIKit
...
@@ -32,13 +32,14 @@ import UIKit
import
Material
import
Material
class
VideoViewController
:
UIViewController
{
class
VideoViewController
:
UIViewController
{
convenience
init
(
)
{
required
init
?(
coder
aDecoder
:
NSCoder
)
{
s
elf
.
init
(
nibName
:
nil
,
bundle
:
nil
)
s
uper
.
init
(
coder
:
aDecoder
)
prepareTabBarItem
()
prepareTabBarItem
()
}
}
/// Prepare tabBarItem.
/// Prepare tabBarItem.
private
func
prepareTabBarItem
()
{
private
func
prepareTabBarItem
()
{
tabBarItem
.
title
=
nil
tabBarItem
.
image
=
Icon
.
cm
.
videocam
?
.
tintWithColor
(
color
:
Color
.
blueGrey
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
tabBarItem
.
image
=
Icon
.
cm
.
videocam
?
.
tintWithColor
(
color
:
Color
.
blueGrey
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
tabBarItem
.
selectedImage
=
Icon
.
cm
.
videocam
?
.
tintWithColor
(
color
:
Color
.
blue
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
tabBarItem
.
selectedImage
=
Icon
.
cm
.
videocam
?
.
tintWithColor
(
color
:
Color
.
blue
.
base
)?
.
withRenderingMode
(
.
alwaysOriginal
)
}
}
...
...
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