Coder Social home page Coder Social logo

Comments (10)

tuxfamily avatar tuxfamily commented on May 19, 2024 1

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.

daniel-jonathan avatar daniel-jonathan commented on May 19, 2024

Yes, what is the version of Material you are using, and please share your setup code.

from samples.

daniel-jonathan avatar daniel-jonathan commented on May 19, 2024

I just tried the latest sample, looks to be working.

screen shot 2016-11-23 at 5 30 06 pm

from samples.

viral-etymon avatar viral-etymon commented on May 19, 2024

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

RootViewController

Thanks

from samples.

daniel-jonathan avatar daniel-jonathan commented on May 19, 2024

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.

viral-etymon avatar viral-etymon commented on May 19, 2024

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.

daniel-jonathan avatar daniel-jonathan commented on May 19, 2024

Thank you :)

from samples.

daniel-jonathan avatar daniel-jonathan commented on May 19, 2024

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.

viral-etymon avatar viral-etymon commented on May 19, 2024

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.

cartickn avatar cartickn commented on May 19, 2024

@DanielDahan

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.