Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swift can not use styleLight #38

Open
enamor opened this issue Aug 1, 2019 · 3 comments
Open

swift can not use styleLight #38

enamor opened this issue Aug 1, 2019 · 3 comments

Comments

@enamor
Copy link

enamor commented Aug 1, 2019

public func yp_navigtionBarConfiguration() -> YPNavigationBarConfigurations {
return [.styleLight]
}

.styleLight 无效

@yiplee
Copy link
Owner

yiplee commented Aug 1, 2019

能提供具体一点的信息和截图吗?期望的是什么效果然后实际是什么效果?

@enamor
Copy link
Author

enamor commented Aug 1, 2019

extension YPNavigationController : NavigationBarConfigureStyle {
public func yp_navigtionBarConfiguration() -> YPNavigationBarConfigurations {
return [.styleBlack]
}

public func yp_navigationBarTintColor() -> UIColor! {
    return .white
}

}

return [.styleBlack] 我想默认直接设置为白色但是swift里面不行

@yiplee
Copy link
Owner

yiplee commented Aug 1, 2019

stypleBlack 会把 status bar 上的字弄成白色,而不是 navigation bar,你跑下 demo 试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants