{"id":18450185,"url":"https://github.com/iosdevgarg/containerview-tabbar","last_synced_at":"2025-10-18T22:19:49.162Z","repository":{"id":143697991,"uuid":"118558562","full_name":"iOSDevGarg/ContainerView-TabBar","owner":"iOSDevGarg","description":"Integration of TabBar Controller in a ContainerView","archived":false,"fork":false,"pushed_at":"2018-06-11T05:11:53.000Z","size":86,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-06T07:28:43.859Z","etag":null,"topics":["containerview","tabbar","tabbarcontroller","toolbar","toolbar-button","uiviewcontroller"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iOSDevGarg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-01-23T04:40:21.000Z","updated_at":"2024-08-08T12:25:16.000Z","dependencies_parsed_at":"2023-06-14T11:45:08.213Z","dependency_job_id":null,"html_url":"https://github.com/iOSDevGarg/ContainerView-TabBar","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/iOSDevGarg%2FContainerView-TabBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iOSDevGarg%2FContainerView-TabBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iOSDevGarg%2FContainerView-TabBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iOSDevGarg%2FContainerView-TabBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iOSDevGarg","download_url":"https://codeload.github.com/iOSDevGarg/ContainerView-TabBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231172994,"owners_count":18338555,"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":["containerview","tabbar","tabbarcontroller","toolbar","toolbar-button","uiviewcontroller"],"created_at":"2024-11-06T07:23:53.280Z","updated_at":"2025-10-18T22:19:44.101Z","avatar_url":"https://github.com/iOSDevGarg.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ContainerView-TabBar\nThis Project Helps in integration of conatiner View , Multiple View Controllers, toolBar And Tabbar Controller That can switch between multiple Tabs \n\n# Flow\n    -----\u003e Main View Controller\n       ---\u003e Up Bar\n       ---\u003e Bottom ToolBar\n            ---\u003e Three Buttons\n       ---\u003e ContainerView\n            ---\u003e Tab Bar Controller\n            ---\u003e Second Vc on Click of Second Button\n            ---\u003e Third Vc on Click of Third Button\n\n# Reference to Tabbar Controller \n    \n      private lazy var FirstObject: mainTabController =\n    {\n        // Instantiate View Controller\n        let viewController = self.storyboard?.instantiateViewController(withIdentifier: \"mainTabController\") as! mainTabController\n        \n        // Add View Controller as Child View Controller\n        self.addChildViewController(viewController)\n        return viewController\n    }()\n    \n    \n# Adding Tabbar in container View\n\n    private func add(asChildViewController viewController: UIViewController)\n    {\n        // Configure Child View\n        viewController.view.frame = CGRect(x: 0, y: 0, width: self.firstContainer.frame.size.width, height: self.firstContainer.frame.size.height)\n        \n        // Add Child View Controller\n        addChildViewController(viewController)\n        viewController.view.translatesAutoresizingMaskIntoConstraints = true\n        \n        // Add Child View as Subview\n        firstContainer.addSubview(viewController.view)\n        \n        // Notify Child View Controller\n        viewController.didMove(toParentViewController: self)\n    }\n    \n# Expected Output : Basic Output\n\n![simulator screen shot - iphone 8 plus - 2018-01-23 at 10 15 33](https://user-images.githubusercontent.com/26831784/35258700-41295962-0027-11e8-8477-000144ded5d6.png)\n\n# When Clicked on Buttons In ToolBar Added - Output\n\n![simulator screen shot - iphone 8 plus - 2018-01-23 at 10 15 35](https://user-images.githubusercontent.com/26831784/35258719-6bf51744-0027-11e8-8b4a-561571a474be.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiosdevgarg%2Fcontainerview-tabbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiosdevgarg%2Fcontainerview-tabbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiosdevgarg%2Fcontainerview-tabbar/lists"}