An ordinary custom navigation bar.
Gradation | Image | Q Zone | |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Zhihu | Alipay | Transparent gradient | |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
To run the example project, clone the repo, and run pod install
from the Example directory first.
- iOS 8+
- Xcode 8+
EFNavigationBar is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'EFNavigationBar'
For more details, see the Example
project:
// Part
navBarBarTintColor = .white
navBarBackgroundAlpha = alpha
navBarTintColor = UIColor(red: 0, green: 0.478431, blue: 1, alpha: 1.0)
navBarTitleColor = .black
statusBarStyle = .default
navBarShadowImageHidden = true
navBarTransition = .linear
// Global
EFNavigationBar.defaultNavBarBarTintColor = UIColor.init(red: 0 / 255.0, green: 175 / 255.0, blue: 240 / 255.0, alpha: 1)
EFNavigationBar.defaultNavBarTintColor = .white
EFNavigationBar.defaultNavBarTitleColor = .white
EFNavigationBar.defaultStatusBarStyle = .lightContent
EFNavigationBar.defaultTransition = .linear
- The original code of EFNavigationBar come from WRNavigationBar_swift, since the
WRNavigationBar_swift
project seems to be no longer maintained, soEFNavigationBar
project has been established; - For Objective-C version, see WRNavigationBar.
EyreFree, [email protected]
EFNavigationBar is available under the MIT license. See the LICENSE file for more info.