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
50ecfbec
Commit
50ecfbec
authored
Apr 03, 2019
by
Orkhan Alikhanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed status bar visibility and style was not controlled by rootViewController
parent
e31ac6be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
Sources/iOS/Table/TableViewController.swift
+1
-0
Sources/iOS/Transition/TransitionController.swift
+13
-0
No files found.
Sources/iOS/Table/TableViewController.swift
View file @
50ecfbec
...
@@ -69,6 +69,7 @@ extension TableViewController {
...
@@ -69,6 +69,7 @@ extension TableViewController {
fileprivate
func
prepareTableView
()
{
fileprivate
func
prepareTableView
()
{
tableView
.
delegate
=
self
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
dataSource
=
self
tableView
.
backgroundColor
=
.
clear
view
.
layout
(
tableView
)
.
edges
()
view
.
layout
(
tableView
)
.
edges
()
}
}
}
}
...
...
Sources/iOS/Transition/TransitionController.swift
View file @
50ecfbec
...
@@ -46,6 +46,19 @@ open class TransitionController: ViewController {
...
@@ -46,6 +46,19 @@ open class TransitionController: ViewController {
}
}
}
}
/// A Boolean indicating whether the controller is in transitioning state.
open
var
isTransitioning
:
Bool
{
return
MotionTransition
.
shared
.
isTransitioning
&&
MotionTransition
.
shared
.
fromViewController
==
rootViewController
}
open
override
var
childForStatusBarStyle
:
UIViewController
?
{
return
isTransitioning
?
MotionTransition
.
shared
.
toViewController
??
rootViewController
:
rootViewController
}
open
override
var
childForStatusBarHidden
:
UIViewController
?
{
return
childForStatusBarStyle
}
/// A reference to the container view.
/// A reference to the container view.
@IBInspectable
@IBInspectable
public
let
container
=
UIView
()
public
let
container
=
UIView
()
...
...
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