Latest 1.0.0
Homepage https://github.com/evilmint/ALSlidingNavigationBar
License MIT
Platforms ios 8.0
Authors

CI Status
Version
Compatibility
License
Platform

Running pod example

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Swift >= 3.0

Installation

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

pod "ALSlidingNavigationBar"

Usage

Create ALSlidingNavigationBar

Create an object of type ALSlidingNavigationBar using the default constructor and passing references of your navigation bar, navigation item and the view you would like to slide.

self.slidingNavigationBar = ALSlidingNavigationBar(
    navigationBar: self.navigationController!.navigationBar,
    navigationItem: self.navigationItem,
    navigationBarView: self.navigationBarView
)

Choose an anchor

There are two anchor types to choose from – view or offset.

View

self.slidingNavigationBar.setAnchor(view: self.anchorView)

Offset

self.slidingNavigationBar.setAnchor(offsetY: 150)

Call the didScroll method

Call the didScroll method on every scroll update, (e.g. didScroll method from UIScrollViewDelegate)

self.slidingNavigationBar.didScroll(offset: self.scrollView.contentOffset.y, convertView: self.view) {

Author

Aleksander Lorenc, [email protected]

License

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

Latest podspec

{
    "name": "ALSlidingNavigationBar",
    "version": "1.0.0",
    "license": "MIT",
    "summary": "Slick sliding navigation bar view",
    "homepage": "https://github.com/evilmint/ALSlidingNavigationBar",
    "authors": {
        "Aleksander Lorenc": "[email protected]"
    },
    "source": {
        "git": "https://github.com/evilmint/ALSlidingNavigationBar.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ALSlidingNavigationBar/Classes/**/*",
    "pushed_with_swift_version": "3.1"
}

Pin It on Pinterest

Share This