TabNavigable
A useful protocol and its extension when you make custom TabBarViewController
Install / Use
/learn @innocarpe/TabNavigableREADME
TabNavigable
Example
class CustomTabBarViewController: UIViewController, TabNavigable {
var containerView: UIView!
var viewControllers: [UIViewController]! = []
override func viewDidLoad() {
super.viewDidLoad()
initViewControllers()
}
private func initViewControllers() {
addViewController()
addViewController()
addViewController()
changeActiveViewController(index: 0)
}
private func addViewController() {
let viewController = YourTabViewController()
viewControllers.append(viewController)
}
func tabButtonDidTap(index: Int) {
changeActiveViewController(index: index)
}
}
Installation
TabNavigable is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "TabNavigable"
Contribution
For your convenience, execute the line below to generate xcodeproj.
$ swift package generate-xcodeproj
Author
Wooseong Kim, innocarpe@gmail.com
License
TabNavigable is available under the MIT license. See the LICENSE file for more info.
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
