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
ddc4fd85
Commit
ddc4fd85
authored
Oct 07, 2016
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storyboard-examples: minor project cleanup
parent
414bc223
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
25 deletions
+59
-25
Examples/Storyboards/BottomNavigationController/BottomNavigationController/AppDelegate.swift
+29
-13
Examples/Storyboards/Button/Button/AppDelegate.swift
+0
-3
Examples/Storyboards/NavigationController/NavigationController/AppDelegate.swift
+0
-1
Examples/Storyboards/PageTabBarController/PageTabBarController/AppDelegate.swift
+29
-7
Examples/Storyboards/SnackbarController/SnackbarController/AppDelegate.swift
+1
-1
No files found.
Examples/Storyboards/BottomNavigationController/BottomNavigationController/AppDelegate.swift
View file @
ddc4fd85
//
/*
// AppDelegate.swift
* Copyright (C) 2015 - 2016, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.io>.
// BottomNavigationController
* All rights reserved.
//
*
// Created by Adam Dahan on 2016-09-29.
* Redistribution and use in source and binary forms, with or without
// Copyright © 2016 CosmicMind. All rights reserved.
* 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 CosmicMind 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
import
UIKit
extension
UIStoryboard
{
class
func
viewController
(
identifier
:
String
)
->
UIViewController
{
return
UIStoryboard
(
name
:
"Main"
,
bundle
:
nil
)
.
instantiateViewController
(
withIdentifier
:
identifier
)
}
}
@UIApplicationMain
@UIApplicationMain
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
{
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
{
...
...
Examples/Storyboards/Button/Button/AppDelegate.swift
View file @
ddc4fd85
...
@@ -35,8 +35,5 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
...
@@ -35,8 +35,5 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
var
window
:
UIWindow
?
var
window
:
UIWindow
?
func
application
(
_
application
:
UIApplication
,
didFinishLaunchingWithOptions
launchOptions
:
[
UIApplicationLaunchOptionsKey
:
Any
]?)
->
Bool
{
return
true
}
}
}
Examples/Storyboards/NavigationController/NavigationController/AppDelegate.swift
View file @
ddc4fd85
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
*/
*/
import
UIKit
import
UIKit
import
Material
@UIApplicationMain
@UIApplicationMain
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
{
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
{
...
...
Examples/Storyboards/PageTabBarController/PageTabBarController/AppDelegate.swift
View file @
ddc4fd85
//
/*
// AppDelegate.swift
* Copyright (C) 2015 - 2016, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.io>.
// PageTabBarController
* All rights reserved.
//
*
// Created by Adam Dahan on 2016-09-29.
* Redistribution and use in source and binary forms, with or without
// Copyright © 2016 CosmicMind. All rights reserved.
* 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 CosmicMind 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
import
UIKit
...
...
Examples/Storyboards/SnackbarController/SnackbarController/AppDelegate.swift
View file @
ddc4fd85
...
@@ -37,7 +37,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
...
@@ -37,7 +37,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
var
window
:
UIWindow
?
var
window
:
UIWindow
?
func
applicationDidFinishLaunching
(
_
application
:
UIApplication
)
{
func
applicationDidFinishLaunching
(
_
application
:
UIApplication
)
{
window
=
UIWindow
(
frame
:
UIScreen
.
main
.
bounds
)
window
=
UIWindow
(
frame
:
Device
.
bounds
)
window
!.
rootViewController
=
AppSnackbarController
(
rootViewController
:
UIStoryboard
(
name
:
"Main"
,
bundle
:
nil
)
.
instantiateViewController
(
withIdentifier
:
"RootViewController"
))
window
!.
rootViewController
=
AppSnackbarController
(
rootViewController
:
UIStoryboard
(
name
:
"Main"
,
bundle
:
nil
)
.
instantiateViewController
(
withIdentifier
:
"RootViewController"
))
window
!.
makeKeyAndVisible
()
window
!.
makeKeyAndVisible
()
}
}
...
...
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