Git Product home page Git Product logo

efnavigationbar's Introduction

An ordinary custom navigation bar.

中文介绍

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

Version Needs
<5.0 Xcode 10.0+
Swift 4.2+
iOS 8.0+
5.x Xcode 10.2+
Swift 5.0+
iOS 9.3+

Installation

CocoaPods

EFNavigationBar is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'EFNavigationBar'

Swift Package Manager

The Swift 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.

dependencies: [
    .package(url: "https://github.com/EFPrefix/EFNavigationBar.git", .upToNextMinor(from: "5.5.1"))
]

Use

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.defaultStyle.backgroundColor = UIColor.white
EFNavigationBar.defaultStyle.titleColor = UIColor.black
EFNavigationBar.defaultStyle.statusBarStyle = UIStatusBarStyle.default

Other

Maintainer

EyreFree, [email protected]

License

EFNavigationBar is available under the MIT license. See the LICENSE file for more info.

efnavigationbar's People

Contributors

davidmaple avatar davidwu109 avatar eyrefree avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

efnavigationbar's Issues

在SceneDelegate.swift中做rootViewController操作后,返回按钮的响应无法返回

class func currentViewController() -> UIViewController {
    if let rootVC = UIApplication.shared.delegate?.window??.rootViewController {
        return self.currentViewController(from: rootVC)
    } else {
        return UIViewController()
    }
}

在控制台打印了下结果如下

if let rootVC = UIApplication.shared.delegate?.window??.rootViewController
p  rootVC
(UIViewController?) $R0 = nil

支持OC吗 现在原来oc版本已经在项目里面根深蒂固了, iOS13上面有比较多的问题, 没办法解决. 这个要是支持OC我就想办法移植过去

Check List

Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

  • I have read the README.md, but there is no information I need.
  • I have searched in existing issues, but did find a same one.

Issue Description

Description

[Tell us about the issue]

Reproduce

[The steps to reproduce this issue. What are the parameters, where did you put your code, etc.]

Other Comment

[Add anything else here]

最新版是抛弃老版么,老版设置都失效,全部通过自定义的tabbarView去实现功能了?

Check List

Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

  • I have read the README.md, but there is no information I need.
  • I have searched in existing issues, but did find a same one.

Issue Description

Description

[Tell us about the issue]

Reproduce

[The steps to reproduce this issue. What are the parameters, where did you put your code, etc.]

Other Comment

[Add anything else here]

iOS 14状态栏高度问题

image
老哥, 这种写死的状态栏高度的方式已经不可取了, iOS14之后好像iPhone x、iPhone11、iPhone 11pro、iPhone12 pro等状态栏的高度已经是47 48等值了

全局效果无法实现

我采用新版的pod
EFNavigationBar.defaultNavBarTitleColor = .white
EFNavigationBar.defaultNavBarBackgroundColor = .red
但是这两句代码不能起全局的效果

.

Check List

Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

  • I have read the README.md, but there is no information I need.
  • I have searched in existing issues, but did find a same one.

Issue Description

Description

[Tell us about the issue]

Reproduce

[The steps to reproduce this issue. What are the parameters, where did you put your code, etc.]

Other Comment

[Add anything else here]

第一个页面的导航透明,push 到第二个页面导航不透明,pop回到第一个页面的时候导航回闪动,搬家后的第一个issue.

Check List

Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

  • I have read the README.md, but there is no information I need.
  • I have searched in existing issues, but did find a same one.

Issue Description

Description

[Tell us about the issue]

Reproduce

[The steps to reproduce this issue. What are the parameters, where did you put your code, etc.]

Other Comment

[Add anything else here]

pod install 无法安装

新建工程->pod init->Podfile 添加 pod 'EFNavigationBar'-> pod install -> 一直卡住
PS:别的库没问题

EFFoundation 跟现有项目冲突,不方便引入

Issue Description

常用属性名称冲突 导致项目报错

Description

依赖EFFoundation
常用属性名称冲突 导致项目报错
比如 width height
不方便现有项目引入

Reproduce

建议EF 自有扩展
以 Rx 和 Kingfiser 一样的 base 方式实现
for example:
view.ef.width
view.ef.height

在iOS14模拟器上,实现导航栏渐变色的另一种方式无效

Check List

Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

  • I have read the README.md, but there is no information I need.
  • I have searched in existing issues, but did find a same one.

Issue Description

Description

[Tell us about the issue]

Reproduce

[The steps to reproduce this issue. What are the parameters, where did you put your code, etc.]

Other Comment

[Add anything else here]

建议isiPhoneXSeries判断方法增加模拟器

let iPhoneXSeries: [Device] = [
            Device.iPhoneX,
            Device.iPhoneXR,
            Device.iPhoneXS,
            Device.iPhoneXSMax
        ]
let iPhoneXSeries: [Device] = [
            Device.iPhoneX,
            Device.iPhoneXR,
            Device.iPhoneXS,
            Device.iPhoneXSMax,
            Device.simulator(.iPhoneX),
            Device.simulator(.iPhoneXR),
            Device.simulator(.iPhoneXS),
             Device.simulator(.iPhoneXSMax)
        ]

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.