Latest 1.0.0
Homepage https://github.com/a1049145827/TransparentNavigation
License MIT
Platforms ios 8.0, requires ARC
Authors

iOS Transparent NavigationBar

Features

  • [x] Transparency changes during page switching
  • [x] Navigation Bar Transparency Change When ScrollView Slides
  • [x] Fluent switching when the gesture slides back
  • [x] System adaptation for iOS8+

Example

example

Installation

cocoapods:

pod 'TransparentNavigation'

Usage

set the alpha in viewController’s function: -viewWillAppear: likes the demo

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];

    self.navBarBgAlpha = @1;
}

Reference article:

如何优雅地在Swift4中实现Method Swizzling

Latest podspec

{
    "name": "TransparentNavigation",
    "version": "1.0.0",
    "platforms": {
        "ios": "8.0"
    },
    "swift_version": "4.2",
    "summary": "Transparent Navigation for iOS",
    "homepage": "https://github.com/a1049145827/TransparentNavigation",
    "authors": {
        "Geek Bruce": "[email protected]"
    },
    "source": {
        "git": "https://github.com/a1049145827/TransparentNavigation.git",
        "tag": "1.0.0"
    },
    "description": "Transparent Navigation Bar for iOS support enlarging image view and reappearance offset",
    "source_files": "TransparentNavigation/*.swift",
    "requires_arc": true,
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    }
}

Pin It on Pinterest

Share This