Welcome to the documentation for GKNavigationBarViewController, a custom navigation bar view controller for iOS.
Installation
To install GKNavigationBarViewController in your project, you can use CocoaPods. Simply add the following line to your Podfile:
pod 'GKNavigationBarViewController'
Then, run the following command:
pod install
Usage
To use GKNavigationBarViewController, you need to import the module:
import GKNavigationBarViewController
Then, subclass your view controller from GKNavigationBarViewController:
class MyViewController: GKNavigationBarViewController {
// ...
}
You can now customize the appearance of the navigation bar:
override var preferredNavigationBarColor: UIColor {
return .blue
}
override var preferredNavigationBarTintColor: UIColor {
return .white
}
override var preferredNavigationBarTitleColor: UIColor {
return .white
}
Features
Customization
GKNavigationBarViewController offers various customization options for your navigation bar:
- Change the background color
- Change the tint color
- Change the title color
Easy Navigation
With GKNavigationBarViewController, you can easily navigate between view controllers using the navigation bar:
let nextViewController = NextViewController()
pushViewController(nextViewController, animated: true)
Additional Resources
For more detailed information on how to use GKNavigationBarViewController, please refer to the GitHub repository.