https://github.com/efprefix/efnavigationbar
An ordinary custom navigation bar.
https://github.com/efprefix/efnavigationbar
bar efnavigationbar navigation navigationbar wrnavigationbar
Last synced: about 1 year ago
JSON representation
An ordinary custom navigation bar.
- Host: GitHub
- URL: https://github.com/efprefix/efnavigationbar
- Owner: EFPrefix
- License: mit
- Created: 2019-02-16T05:07:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-02-19T16:42:15.000Z (over 1 year ago)
- Last Synced: 2025-04-04T23:43:53.181Z (about 1 year ago)
- Topics: bar, efnavigationbar, navigation, navigationbar, wrnavigationbar
- Language: Swift
- Homepage: https://swiftpackageindex.com/EFPrefix/EFNavigationBar
- Size: 24.7 MB
- Stars: 120
- Watchers: 2
- Forks: 16
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README

An ordinary custom navigation bar.
> [中文介绍](https://github.com/EFPrefix/EFNavigationBar/blob/master/README_CN.md)
## Overview
|Gradation|Image|Weibo|Q Zone|
|:-:|:-:|:-:|:-:|
|||||
|Zhihu|QQ|Alipay|Transparent gradient|
|:-:|:-:|:-:|:-:|
|||||
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
- Xcode 16+
- Swift 6.0+
## Installation
### CocoaPods
EFNavigationBar is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'EFNavigationBar'
```
### Swift Package Manager
The [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the Swift compiler.
Once you have your Swift package set up, adding EFNavigationBar as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
```swift
dependencies: [
.package(url: "https://github.com/EFPrefix/EFNavigationBar.git", .upToNextMinor(from: "6.0.0.0"))
]
```
## Use
For more details, see the `Example` project:
```swift
// 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.defaultStyle.backgroundColor = UIColor.white
EFNavigationBar.defaultStyle.titleColor = UIColor.black
EFNavigationBar.defaultStyle.statusBarStyle = UIStatusBarStyle.default
```
## Other
- [EFNavigationBar](https://github.com/EFPrefix/EFNavigationBar) based on [WRNavigationBar_swift](https://github.com/wangrui460/WRNavigationBar_swift/commit/a445f74ac57d675f87a60a49a745c5a3b01b6324);
- For Objective-C version, see [WRNavigationBar](https://github.com/wangrui460/WRNavigationBar).
## Maintainer
EyreFree, eyrefree@eyrefree.org
## License

EFNavigationBar is available under the MIT license. See the [LICENSE](https://github.com/EFPrefix/EFNavigationBar/blob/master/LICENSE) file for more info.