Skip to content

Commit

Permalink
Fix markdown syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
danshevluk committed Mar 23, 2017
1 parent 2cab50f commit b9914a3
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,56 @@
# ETNavBarTransparent
Change NavigationBar's transparency at pop gestrue and other situation
###Screenshots

## Animation
![image](https://github.com/EnderTan/ETNavBarTransparentDemo/blob/master/navDemo.gif)

##Installation
## Installation
Add the following line to your Podfile:
```
```ruby
pod 'ETNavBarTransparent'
```

Then, run the following command:
```
```bash
$ pod install
```

Or,Simply drag "ET_NavBarTransparent.swift" to your project
Or, simply drag `ET_NavBarTransparent.swift` to your project.

## Usage

##Usage
Change NavigationBar's transparency and tintColor where you want:
```
   //Example:
   //Change in viewDidLoad

```swift
   // Example:
   // Change in viewDidLoad
   override func viewDidLoad() {
super.viewDidLoad()

self.navBarBgAlpha = 0
self.navBarTintColor = .white
}

   //Change in scrollView scroll
   // Change in scrollView scroll
   func scrollViewDidScroll(_ scrollView: UIScrollView) {

if scrollView.contentOffset.y > 100 {
           navBarBgAlpha = 1
           navBarTintColor = UIColor.defaultNavBarTintColor()
       }else{
       } else {
navBarBgAlpha = 0
navBarTintColor = UIColor.white
navBarTintColor = .white
}

}
```


##Related articles
## Related articles
[导航栏的平滑显示和隐藏 - 个人页的自我修养(1)](http://www.jianshu.com/p/454b06590cf1)

##License
## License
MIT license. See LICENSE for details.

##Contact
## Contact
Follow and contact me on Weibo [@日光镇](http://weibo.com/endertan) or [My Blog](http://www.jianshu.com/u/a958e552973b)

0 comments on commit b9914a3

Please sign in to comment.