Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

iOS-Swift-Developers/WRNavigationBar_swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

81 Commits

Repository files navigation

image

For Objective-C:https://github.com/wangrui460/WRNavigationBar


Requirements

  • iOS 8+
  • Xcode 8+

Demo

新浪微博个人中心

qq空间

知乎日报

QQ我的资料页

蚂蚁森林

自定义导航栏

移动导航栏

Installation

手动拖入 将 WRNavigationBar 文件夹拽入项目中即可使用

How To Use


// 一行代码搞定导航栏颜色
navBarBarTintColor = .white
// 一行代码搞定导航栏透明度
navBarBackgroundAlpha = alpha
// 一行代码搞定导航栏两边按钮颜色
navBarTintColor = UIColor(red: 0, green: 0.478431, blue: 1, alpha: 1.0)
// 一行代码搞定导航栏上标题颜色
navBarTitleColor = .black
// 一行代码搞定状态栏是 default 还是 lightContent
statusBarStyle = .default

See detail

我的简书: 韦德460

Update

  • 2017年05月12日 解决问题:侧滑一点松开透明的导航栏会变不透明

  • 2017年05月16日 新增Demo:完成自定义导航栏实现透明渐变等效果

  • 2017年05月20日 解决问题:解决侧滑返回导航栏没有渐变动画太突兀的**问题

  • 2017年05月21日 解决问题:解决push导航栏没有渐变动画太突兀的问题

  • 2017年06月15日 解决问题:解决scrollView正在滑动的时候,点击返回按钮,导航栏颜色变化突兀的问题

  • 2017年06月19日 解决问题:解决移动导航栏后右滑返回中途取消导致的导航栏错位的问题

Features

Contact me

License

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

About

WRNavigationBar which allows you to change NavigationBar's appearance dynamically

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 96.8%
  • Shell 2.4%
  • Other 0.8%

AltStyle によって変換されたページ (->オリジナル) /