Commit 759d1b63 by Daniel Dahan

development: fixed issue-613

parent 543c6864
Pod::Spec.new do |s|
s.name = 'Material'
s.version = '2.3.19'
s.version = '2.3.20'
s.license = 'BSD-3-Clause'
s.summary = 'Material is an animation and graphics framework that is used to create beautiful applications.'
s.homepage = 'http://materialswift.com'
......
......@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.3.19</string>
<string>2.3.20</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
......
......@@ -204,6 +204,8 @@ public struct Grid {
}
}
canvas.layoutIfNeeded()
guard 0 < canvas.width && 0 < canvas.height else {
return
}
......
......@@ -309,10 +309,6 @@ extension CALayer {
/// Manages the layout for the shape of the view instance.
open func layoutShape() {
guard 0 < width, 0 < height else {
return
}
if .none != shapePreset {
if width < height {
frame.size.width = height
......
......@@ -425,7 +425,8 @@ open class NavigationDrawerController: RootController {
}
/// Layout subviews.
open override func layoutSubviews() {
open override func layoutSubviews() {
super.layoutSubviews()
toggleStatusBar()
if let v = leftView {
......
......@@ -31,26 +31,6 @@
import UIKit
open class RootController: UIViewController {
/// Device status bar style.
open var statusBarStyle: UIStatusBarStyle {
get {
return Application.statusBarStyle
}
set(value) {
Application.statusBarStyle = value
}
}
/// Device visibility state.
open var isStatusBarHidden: Bool {
get {
return Application.isStatusBarHidden
}
set(value) {
Application.isStatusBarHidden = value
}
}
/**
A Boolean property used to enable and disable interactivity
with the rootViewController.
......
......@@ -49,18 +49,33 @@ extension UIViewController {
}
open class StatusBarController: RootController {
/// A reference to the statusBar.
open let statusBar = UIView()
/// A boolean that indicates to hide the statusBar on rotation.
open var shouldHideStatusBarOnRotation = true
/// Device status bar style.
open var statusBarStyle: UIStatusBarStyle {
get {
return Application.statusBarStyle
}
set(value) {
Application.statusBarStyle = value
}
}
open override var isStatusBarHidden: Bool {
didSet {
/// Device visibility state.
open var isStatusBarHidden: Bool {
get {
return Application.isStatusBarHidden
}
set(value) {
Application.isStatusBarHidden = value
statusBar.isHidden = isStatusBarHidden
}
}
/// A boolean that indicates to hide the statusBar on rotation.
open var shouldHideStatusBarOnRotation = true
/// A reference to the statusBar.
open let statusBar = UIView()
/**
To execute in the order of the layout chain, override this
method. LayoutSubviews should be called immediately, unless you
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment