CocoaPods trunk is moving to be read-only. Read more on the blog, there are 12 months to go.
| TestsTested | ✗ |
| LangLanguage | SwiftSwift |
| License | MIT |
| ReleasedLast Release | Jan 2017 |
| SwiftSwift Version | 3.0 |
| SPMSupports SPM | ✗ |
Maintained by Aurelien Grifasi.
iOS Navigation Bar with customs shapes (Zigzag, Wave and Square).
To run the example project, clone the repo, and run pod install from the Example directory first.
Add the AGNavigationBarShape.swift file to your project.
Add import AGNavigationBarShape in your file
In your app delegate:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
let rootViewController = UIStoryboard.init(name: "Main", bundle: nil).instantiateInitialViewController()
let navController = UINavigationController(navigationBarClass: AGNavigationBarShape.self, toolbarClass: nil)
(navController.navigationBar as? AGNavigationBarShape)?.shapeMode = ShapeMode.wave.rawValue
(navController.navigationBar as? AGNavigationBarShape)?.color = UIColor.purple
(navController.navigationBar as? AGNavigationBarShape)?.cycles = 10
(navController.navigationBar as? AGNavigationBarShape)?.heightShape = 15
navController.viewControllers = [rootViewController!]
window?.rootViewController = navController
window?.makeKeyWindow()
return true
}AGNavigationBarShape Class and Module to UINavigationController’s navigationBar in Identity InspectorAurelien Grifasi, [email protected]
AGNavigationBarShape is available under the MIT license. See the LICENSE file for more info.