{"id":2741,"url":"https://github.com/Jiar/SegementSlide","last_synced_at":"2025-08-03T00:32:32.321Z","repository":{"id":47323054,"uuid":"160814884","full_name":"Jiar/SegementSlide","owner":"Jiar","description":"Multi-tier UIScrollView nested scrolling solution. 😋😋😋","archived":false,"fork":false,"pushed_at":"2021-05-13T09:26:37.000Z","size":2458,"stargazers_count":1290,"open_issues_count":42,"forks_count":156,"subscribers_count":23,"default_branch":"master","last_synced_at":"2024-04-24T14:51:34.862Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://blog.jiar.me/2019/02/13/Multi-tier-UIScrollView-nested-scrolling-solution/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jiar.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}},"created_at":"2018-12-07T11:26:43.000Z","updated_at":"2024-04-19T14:07:29.000Z","dependencies_parsed_at":"2022-08-12T13:21:13.309Z","dependency_job_id":null,"html_url":"https://github.com/Jiar/SegementSlide","commit_stats":null,"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiar%2FSegementSlide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiar%2FSegementSlide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiar%2FSegementSlide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiar%2FSegementSlide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jiar","download_url":"https://codeload.github.com/Jiar/SegementSlide/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228510787,"owners_count":17931765,"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":"2024-01-05T20:16:21.622Z","updated_at":"2024-12-06T18:30:45.397Z","avatar_url":"https://github.com/Jiar.png","language":"Swift","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/Jiar/SegementSlide/blob/master/Images/Logo.png?raw=true\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/Jiar/SegementSlide\"\u003e\u003cimg src=\"https://img.shields.io/badge/language-swift-orange.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://travis-ci.org/Jiar/SegementSlide\"\u003e\u003cimg src=\"https://img.shields.io/travis/Jiar/SegementSlide.svg?branch=master\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Carthage/Carthage\"\u003e\u003cimg src=\"https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://cocoapods.org/pods/SegementSlide\"\u003e\u003cimg src=\"https://img.shields.io/cocoapods/v/SegementSlide.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://cocoapods.org/pods/SegementSlide\"\u003e\u003cimg src=\"https://img.shields.io/cocoapods/p/SegementSlide.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Jiar/SegementSlide/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/cocoapods/l/SegementSlide.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://codebeat.co/projects/github-com-jiar-segementslide-master\"\u003e\u003cimg alt=\"codebeat badge\" src=\"https://codebeat.co/badges/79bddc2a-a4d8-46b3-ba59-c4efaf0e2abc\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/Jiar/SegementSlide\"\u003e\u003cimg src=\"https://codecov.io/gh/Jiar/SegementSlide/branch/master/graph/badge.svg\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://twitter.com/JiarYoo\"\u003e\u003cimg src=\"https://img.shields.io/badge/twitter-@JiarYoo-blue.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://weibo.com/u/2268197591\"\u003e\u003cimg src=\"https://img.shields.io/badge/weibo-@Jiar-red.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\nMulti-tier UIScrollView nested scrolling solution.\n\u003c/p\u003e\n\n## Snapshots\n\n\u003cp align=\"center\"\u003e\n\u003cdiv style=\"display:flex\"\u003e\n  \u003cimg style=\"flex-grow:1\" src=\"https://github.com/Jiar/ImageHosting/blob/master/Github/Repositories/SegementSlide/v2/Snapshots/childBouncesType.gif?raw=true\" width=\"32%\"\u003e\n  \u003cimg style=\"flex-grow:1\" src=\"https://github.com/Jiar/ImageHosting/blob/master/Github/Repositories/SegementSlide/v2/Snapshots/transparent1.gif?raw=true\" width=\"33%\"\u003e\n  \u003cimg style=\"flex-grow:1\" src=\"https://github.com/Jiar/ImageHosting/blob/master/Github/Repositories/SegementSlide/v2/Snapshots/inNavigationBar.gif?raw=true\" width=\"32%\"\u003e\n\u003c/div\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cdiv style=\"display:flex\"\u003e\n  \u003cimg style=\"flex-grow:1\" src=\"https://github.com/Jiar/ImageHosting/blob/master/Github/Repositories/SegementSlide/v2/Snapshots/parentBouncesType.gif?raw=true\" width=\"32%\"\u003e\n  \u003cimg style=\"flex-grow:1\" src=\"https://github.com/Jiar/ImageHosting/blob/master/Github/Repositories/SegementSlide/v2/Snapshots/transparent2.gif?raw=true\" width=\"33%\"\u003e\n  \u003cimg style=\"flex-grow:1\" src=\"https://github.com/Jiar/ImageHosting/blob/master/Github/Repositories/SegementSlide/v2/Snapshots/parentBouncesType_segementSwitcherType.gif?raw=true\" width=\"32%\"\u003e\n\u003c/div\u003e\n\u003c/p\u003e\n\n## Requirements\n\n- iOS 9.0+\n- Xcode 10.0+\n- Swift 4.2+\n\n## Installation\n\n### CocoaPods\n\n[CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\n\u003e CocoaPods 1.1.0+ is required to build SegementSlide.\n\nTo integrate SegementSlide into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '9.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod 'SegementSlide', '3.0.1'\nend\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\n### Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.\n\nYou can install Carthage with [Homebrew](https://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate SegementSlide into your Xcode project using Carthage\n\n1. specify it in your `Cartfile`:\n\n```ogdl\ngithub \"Jiar/SegementSlide\" \"3.0.1\"\n```\n\nRun `carthage update` to build the framework.\n\n2. Copy Carthage Frameworks:\n- open the `Build Phases` tab of the project Settings\n- add `New Run Script Phase`\n- add `/usr/local/bin/carthage copy-frameworks` to the input field\n- add `$(SRCROOT)/Carthage/Build/iOS/SegementSlide.framework` to `Input Files`\n![Copy Carthage Frameworks](https://github.com/Jiar/ImageHosting/blob/master/Github/Repositories/SegementSlide/v2/Snapshots/Copy%20Carthage%20Frameworks.png?raw=true)\n\n3. Embedded Binaries:\n- open the `general` tab of the project Settings\n- add `SegementSlide.framework` in `$(SRCROOT)/Carthage/Build/iOS` to the `Embedded Binaries`\n![Embed Binaries](https://github.com/Jiar/ImageHosting/blob/master/Github/Repositories/SegementSlide/v2/Snapshots/Embed%20Binaries.png?raw=true)\n\n### Manually\n\nIf you prefer not to use either of the aforementioned dependency managers, you can integrate SegementSlide into your project manually.\n\n---\n\n## Usage\n\n### Quick Start\n\n```swift\nimport SegementSlide\n\nclass HomeViewController: SegementSlideDefaultViewController {\n\n    ......\n    \n    override func segementSlideHeaderView() -\u003e UIView? {\n        let headerView = UIView()\n        let headerView.translatesAutoresizingMaskIntoConstraints = false\n        headerView.heightAnchor.constraint(equalToConstant: view.bounds.height/4).isActive = true\n        return headerView\n    }\n\n    override var titlesInSwitcher: [String] {\n        return [\"Swift\", \"Ruby\", \"Kotlin\"]\n    }\n\n    override func segementSlideContentViewController(at index: Int) -\u003e SegementSlideContentScrollViewDelegate? {\n        return ContentViewController()\n    }\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n        defaultSelectedIndex = 0\n        reloadData()\n    }\n\n}\n```\n\n```swift\nimport SegementSlide\n\nclass ContentViewController: UITableViewController, SegementSlideContentScrollViewDelegate {\n\n    ......\n\n    @objc var scrollView: UIScrollView {\n        return tableView\n    }\n\n}\n```\n\n## Structure\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/Jiar/SegementSlide/blob/master/Images/Structure.png?raw=true\"\u003e\n\u003c/p\u003e\n\n## Author\n\n- Twitter: ([@JiarYoo](https://twitter.com/JiarYoo))\n- Weibo: ([@Jiar](https://weibo.com/u/2268197591))\n\n## License\n\nSegementSlide is released under the Apache-2.0 license. See LICENSE for details.\n","funding_links":[],"categories":["UI","uiscrollview nested uiscrollview"],"sub_categories":["ScrollView"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJiar%2FSegementSlide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJiar%2FSegementSlide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJiar%2FSegementSlide/lists"}