{"id":15305079,"url":"https://github.com/nicnocquee/header-sticky-tab","last_synced_at":"2025-04-15T00:53:33.346Z","repository":{"id":38292491,"uuid":"275070389","full_name":"nicnocquee/header-sticky-tab","owner":"nicnocquee","description":"A container view controller that displays children view controllers in tabs like the profile screen on Twitter or Instagram without any dependencies","archived":false,"fork":false,"pushed_at":"2022-10-06T15:06:25.000Z","size":1240,"stargazers_count":18,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T00:53:26.813Z","etag":null,"topics":["ios","swift","xcode"],"latest_commit_sha":null,"homepage":"","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/nicnocquee.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}},"created_at":"2020-06-26T04:07:29.000Z","updated_at":"2025-04-01T11:20:45.000Z","dependencies_parsed_at":"2023-01-19T12:47:17.896Z","dependency_job_id":null,"html_url":"https://github.com/nicnocquee/header-sticky-tab","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Fheader-sticky-tab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Fheader-sticky-tab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Fheader-sticky-tab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Fheader-sticky-tab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicnocquee","download_url":"https://codeload.github.com/nicnocquee/header-sticky-tab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986278,"owners_count":21194025,"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":["ios","swift","xcode"],"created_at":"2024-10-01T07:58:58.124Z","updated_at":"2025-04-15T00:53:33.330Z","avatar_url":"https://github.com/nicnocquee.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HeaderStickyTabViewController\n\n## About\n\nA container view controller that displays children view controllers in tabs like the profile screen on Twitter or Instagram without any dependencies. When the user scrolls the scroll view of the child view controller, the tab/segment control stick at the top.\n\n![](https://github.com/nicnocquee/header-sticky-tab/raw/master/preview.gif)\n\n## Features\n\n- Custom header view\n- Custom tab view\n\n## Installation\n\n### Manual\n\nAdd the `HeaderStickyTabViewController.swift` file from `Sources/HeaderStickyTabViewController` directory to your project.\n\n### Swift Package Manager\n\nAdd this package in Xcode: `https://github.com/nicnocquee/header-sticky-tab`\n\n### Cocoapods\n\nComing soon.\n\n## Usage\n\n- Create a view controller that extends `HeaderStickyTabViewController`\n- Assign a view to `headerView` property.\n- Assign the children view controllers to `viewControllers` property.\n- Override `childDidScroll` function if needed.\n- Override `didChangePage` method if needed.\n\n```swift\nimport HeaderStickyTabViewController\n\nclass ProfileViewController: HeaderStickyTabViewController {\n\n    static func create() -\u003e ProfileViewController {\n        let vc = ProfileViewController()\n        vc.title = \"Child\"\n\n        vc.headerView = ProfileHeaderView()\n        vc.viewControllers = [\n            FirstTabViewController(style: .plain),\n            SecondTabViewController(style: .plain)\n        ]\n\n        return vc\n    }\n}\n```\n\nCheckout `Example/HeaderStickyTab/ProfileViewController.swift` in this repository for example.\n\n## Example\n\nOpen `Example/HeaderStickyTab.xcworkspace`. Run the sample app in simulator. The example shows how to blur the header image when user pull down the scroll view.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicnocquee%2Fheader-sticky-tab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicnocquee%2Fheader-sticky-tab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicnocquee%2Fheader-sticky-tab/lists"}