{"id":25317610,"url":"https://github.com/theleftbit/carbonkit","last_synced_at":"2025-10-13T03:25:09.432Z","repository":{"id":70643665,"uuid":"328618297","full_name":"theleftbit/carbonkit","owner":"theleftbit","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-11T09:54:35.000Z","size":5417,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T19:43:06.692Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theleftbit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-11T09:53:30.000Z","updated_at":"2021-01-11T09:54:30.000Z","dependencies_parsed_at":"2023-04-13T23:03:29.307Z","dependency_job_id":null,"html_url":"https://github.com/theleftbit/carbonkit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theleftbit%2Fcarbonkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theleftbit%2Fcarbonkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theleftbit%2Fcarbonkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theleftbit%2Fcarbonkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theleftbit","download_url":"https://codeload.github.com/theleftbit/carbonkit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247698841,"owners_count":20981422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-13T19:39:35.568Z","updated_at":"2025-10-13T03:25:04.383Z","avatar_url":"https://github.com/theleftbit.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![alt tag](https://github.com/ermalkaleci/CarbonTabSwipeNavigation/blob/master/Resources/CarbonKit.jpg)\n\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![CocoaPods compatible](https://img.shields.io/cocoapods/v/CarbonKit.svg?style=flat)](https://cocoapods.org/pods/CarbonKit) [![License: MIT](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://github.com/ermalkaleci/CarbonKit/blob/master/LICENSE)\n\n**IMPORTANT NOTE**: Please don't submit issues for questions regarding your code. Only actual bugs or feature requests will be answered, all others will be closed without comment. In case of reporting a bug, please include a screenshot and the code to reproduce it.\n\nCarbonKit is an open source iOS library that includes powerful and beauty UI components.\n\nCarbonKit includes:\n- CarbonSwipeRefresh\n- CarbonTabSwipeNavigation\n\n# Carthage\nAdd following line into your Cartfile\n```\ngithub \"ermalkaleci/CarbonKit\"\n```\n\nRun `carthage update`\n\n# CocoaPods\nCarbonKit is available on CocoaPods. Add to your Podfile:\n```\nuse_frameworks!\npod 'CarbonKit'\n```\nRun `pod install`\n\n# CarbonTabSwipeNavigation\n\n![alt tag](https://github.com/ermalkaleci/CarbonTabSwipeNavigation/blob/master/Resources/CarbonTabSwipeNavigation.gif)\n\n# SAMPLE CODE\n\n```objective-c\n#import \"CarbonKit.h\"\n\n@interface ViewController () \u003cCarbonTabSwipeNavigationDelegate\u003e\n@end\n\n@implementation ViewController\n\n- (void)viewDidLoad {\n\t[super viewDidLoad];\n\n\tNSArray *items = @[[UIImage imageNamed:@\"home\"], [UIImage imageNamed:@\"hourglass\"],\n\t[UIImage imageNamed:@\"premium_badge\"], @\"Categories\", @\"Top Free\",\n\t@\"Top New Free\", @\"Top Paid\", @\"Top New Paid\"];\n\n\tCarbonTabSwipeNavigation *carbonTabSwipeNavigation =\n\t[[CarbonTabSwipeNavigation alloc] initWithItems:items delegate:self];\n\t[carbonTabSwipeNavigation insertIntoRootViewController:self];\n\t// or [carbonTabSwipeNavigation insertIntoRootViewController:self andTargetView:yourView];\n}\n\n// delegate\n- (UIViewController *)carbonTabSwipeNavigation:(CarbonTabSwipeNavigation *)carbonTabSwipeNavigation\n\t\t\t viewControllerAtIndex:(NSUInteger)index {\n\t// return viewController at index\n}\n\n@end\n```\n\nSwift Sample\n```swift\nimport CarbonKit\n\nclass ViewController: UIViewController, CarbonTabSwipeNavigationDelegate {\n\n    // MARK: Override methods\n    override func viewDidLoad() {\n        super.viewDidLoad()\n        let items = [\"Features\", \"Products\", \"About\"]\n        let carbonTabSwipeNavigation = CarbonTabSwipeNavigation(items: items, delegate: self)\n        carbonTabSwipeNavigation.insertIntoRootViewController(self)\n\t\t// or carbonTabSwipeNavigation.insertIntoRootViewController(self, andTargetView: yourView)\n    }\n\n    func carbonTabSwipeNavigation(carbonTabSwipeNavigation: CarbonTabSwipeNavigation, viewControllerAtIndex index: UInt) -\u003e UIViewController {\n        // return viewController at index\n    }\n}\n```\n\n# CarbonSwipeRefresh\n\n![alt tag](https://github.com/ermalkaleci/CarbonTabSwipeNavigation/blob/master/Resources/CarbonSwipeRefresh.gif)\n\n# SAMPLE CODE\n```objective-c\n#import \"CarbonKit.h\"\n\n@interface ViewController ()\n{\n\tCarbonSwipeRefresh *refresh;\n}\n@end\n\n@implementation ViewController\n- (void)viewDidLoad {\n\t[super viewDidLoad];\n\n\trefresh = [[CarbonSwipeRefresh alloc] initWithScrollView:self.tableView];\n\t[refresh setColors:@[\n\t\t[UIColor blueColor],\n\t \t[UIColor redColor],\n\t\t[UIColor orangeColor],\n\t\t[UIColor greenColor]]\n\t]; // default tintColor\n\n\t// If your ViewController extends to UIViewController\n\t// else see below\n\t[self.view addSubview:refresh];\n\n\t[refresh addTarget:self action:@selector(refresh:) forControlEvents:UIControlEventValueChanged];\n}\n\n- (void)refresh:(id)sender {\n\t[refresh endRefreshing];\n}\n@end\n```\n\nIf you are using UITableViewController you must add the refreshControl into self.view.superview after viewDidAppear\n```objective-c\n- (void)viewDidAppear:(BOOL)animated {\n\t[super viewDidAppear:animated];\n\n\tif (!refreshControl.superview) {\n\t\t[self.view.superview addSubview:refreshControl];\n\t}\n}\n```\n\n\n# LICENSE\n[The MIT License (MIT)](https://github.com/ermalkaleci/CarbonKit/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheleftbit%2Fcarbonkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheleftbit%2Fcarbonkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheleftbit%2Fcarbonkit/lists"}