An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

![](https://raw.githubusercontent.com/EFPrefix/EFNavigationBar/master/Assets/EFNavigationBar.png)

















An ordinary custom navigation bar.

> [中文介绍](https://github.com/EFPrefix/EFNavigationBar/blob/master/README_CN.md)

## Overview

|Gradation|Image|Weibo|Q Zone|
|:-:|:-:|:-:|:-:|
|![](https://github.com/EFPrefix/EFNavigationBar/blob/master/Assets/导航栏显示渐变色.gif)|![](https://github.com/EFPrefix/EFNavigationBar/blob/master/Assets/导航栏显示图片.gif)|![](https://github.com/EFPrefix/EFNavigationBar/blob/master/Assets/新浪微博个人中心.gif)|![](https://github.com/EFPrefix/EFNavigationBar/blob/master/Assets/qq空间.gif)|

|Zhihu|QQ|Alipay|Transparent gradient|
|:-:|:-:|:-:|:-:|
|![](https://github.com/EFPrefix/EFNavigationBar/blob/master/Assets/知乎日报.gif)|![](https://github.com/EFPrefix/EFNavigationBar/blob/master/Assets/QQ我的资料页.gif)|![](https://github.com/EFPrefix/EFNavigationBar/blob/master/Assets/蚂蚁森林.gif)|![](https://github.com/EFPrefix/EFNavigationBar/blob/master/Assets/连续多个界面导航栏透明.gif)|

## 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.