Comments (10)
Same here.
My workaround is to add
override public var preferredStatusBarStyle: UIStatusBarStyle {
return UIStatusBarStyle.default
}
To the custom NavigationController class.
Also, in the storyboard, make sure that your navigation controller uses the custom class AND that Inherit Module From Target
is checked (was unchecked for me and the above workaround was not working).
Caution: for this to works View controller-based status bar appearance
must be set to YES
or not defined.
from samples.
Yes, what is the version of Material you are using, and please share your setup code.
from samples.
I just tried the latest sample, looks to be working.
from samples.
Hi,
I am using 2.3.10 version of Material. And yes I am doing nothing just replacing sample code which is available on github.
My Sample code is below:
In AppDelegate:
var window: UIWindow?
in didFinishLaunchingWithOptions method
window = UIWindow(frame: Screen.bounds)
window!.rootViewController = AppNavigationController(rootViewController: RootViewController())
window!.makeKeyAndVisible()
AppNavigationController is
import UIKit
import Material
class AppNavigationController: NavigationController {
open override func prepare() {
super.prepare()
guard let v = navigationBar as? NavigationBar else {
return
}
v.depthPreset = .none
v.dividerColor = Color.grey.lighten3
}
}
Nothing change in RootViewController
Thanks
from samples.
Are you using the Sample project directly ? Could you confirm that you do not have hide status bar in the project settings. I will double checkout production code.
Also, please try upgrading to the latest.
from samples.
No I am not using sample project. I am integrating it in my project by following sample project given. I have crossed check that hide status bar is not checked. Ok I try to upgrade it to latest and let you know.
Thanks
from samples.
Thank you :)
from samples.
Hey, I haven't heard from you. So I will close this issue, and if you need, please reopen or create a new one :) Thank you!
from samples.
Sorry for this... Yes I am also wrapping some other task on hand so didn't get any chance. If I found any difficulty then I will ask you. Thanks for your time :-)
from samples.
In the sample project the Info.plist file has the following key set-up...
View controller-based status bar appearance = NO
If you remove this key then you can reproduce the problem with the sample project as well.
from samples.
Related Issues (20)
- How to use NavigationDrawer whit native UITabbarController? HOT 2
- How to open ViewControler from left or right drawer? HOT 5
- In CheckButton Unable to change the background color HOT 11
- Set base configuration of Checkbox to Tint = clear. HOT 1
- Type 'MotionTransitionAnimationType' has no member 'fadeSlide' HOT 1
- NavigationController has no shadow or elevation HOT 3
- Using NavigationController in storyboard HOT 1
- Error Launching Sample CollectionView HOT 3
- ToolbarController Sample not works HOT 2
- bug HOT 1
- Coming up with a basic design for a new Sample application
- Card \ PresenterCard sample does not show card in ios 13.1 HOT 3
- Value of type '(TabBar, TabItem) -> ()' has no member 'buttons' HOT 1
- ImageCard sample gives me a complete white screen
- Cannot Build with Xcode 11
- At the TableView, does not work padding.
- NavigationDrawer needs update?
- tabBarStyle = .scrollable alignment to right
- demo error
- Right To Left (for arabic country) view not supported.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from samples.