{"id":32312052,"url":"https://github.com/batanus/dmscrollbar","last_synced_at":"2026-02-21T02:40:07.414Z","repository":{"id":65138619,"uuid":"582366558","full_name":"batanus/DMScrollBar","owner":"batanus","description":"Interactive and customizable scroll bar with deceleration and appearing info label during scrolling for Scroll View","archived":false,"fork":false,"pushed_at":"2025-10-08T09:19:30.000Z","size":215,"stargazers_count":40,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T11:29:33.381Z","etag":null,"topics":["cocoapods","collectionview","ios","scroll","scroll-bar","scroll-indicator","scroll-view","scrollbar","scrollindicator","scrollview","scrollview-component","swift","tableview","uicollectionview","uiscrollview","uitableview"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/batanus.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-26T15:45:04.000Z","updated_at":"2025-10-08T09:19:35.000Z","dependencies_parsed_at":"2023-11-17T20:30:28.068Z","dependency_job_id":"84afbbbf-0bed-4322-a33a-d03cda109161","html_url":"https://github.com/batanus/DMScrollBar","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/batanus/DMScrollBar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batanus%2FDMScrollBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batanus%2FDMScrollBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batanus%2FDMScrollBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batanus%2FDMScrollBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/batanus","download_url":"https://codeload.github.com/batanus/DMScrollBar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batanus%2FDMScrollBar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280598937,"owners_count":26357976,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cocoapods","collectionview","ios","scroll","scroll-bar","scroll-indicator","scroll-view","scrollbar","scrollindicator","scrollview","scrollview-component","swift","tableview","uicollectionview","uiscrollview","uitableview"],"created_at":"2025-10-23T09:51:34.797Z","updated_at":"2025-10-23T09:51:36.378Z","avatar_url":"https://github.com/batanus.png","language":"Swift","readme":"# DMScrollBar\n\n[![CI Status](https://img.shields.io/travis/batanus/DMScrollBar.svg?style=flat)](https://travis-ci.org/batanus/DMScrollBar)\n[![Version](https://img.shields.io/cocoapods/v/DMScrollBar.svg?style=flat)](https://cocoapods.org/pods/DMScrollBar)\n[![License](https://img.shields.io/cocoapods/l/DMScrollBar.svg?style=flat)](https://cocoapods.org/pods/DMScrollBar)\n[![Platform](https://img.shields.io/cocoapods/p/DMScrollBar.svg?style=flat)](https://cocoapods.org/pods/DMScrollBar)\n\n## Example\niOS style | Default style | iOS \u0026 Default combined style  | Absolutely custom style | Right label style |Easy to change\n:-: | :-: | :-: | :-: | :-: | :-:\n| \u003cimg width=\"170\" src=\"https://user-images.githubusercontent.com/25244017/209937427-7274d753-c4f1-45f8-93be-659b7d3b4434.gif\"\u003e | \u003cimg width=\"170\" src=\"https://user-images.githubusercontent.com/25244017/209937470-d76a558c-6350-4d96-a142-13a6ef32e0f8.gif\"\u003e | \u003cimg width=\"170\" src=\"https://user-images.githubusercontent.com/25244017/209937479-e7acbbd1-fba1-4fa8-a34f-9bb4b3ee790e.gif\"\u003e | \u003cimg width=\"170\" src=\"https://user-images.githubusercontent.com/25244017/209937494-f61232a5-319a-4f88-abaf-b9340105746a.gif\"\u003e | \u003cimg width=\"170\" src=\"https://user-images.githubusercontent.com/25244017/212671212-3f507ff5-83ea-491d-b80a-8981a0fbd005.gif\"\u003e | \u003cimg width=\"170\" src=\"https://user-images.githubusercontent.com/25244017/209937517-be2e6f54-53f9-447d-ad38-4fab39624551.gif\"\u003e\n\n\n\n## Description \n\nDMScrollBar is best in class customizable ScrollBar for ScrollView. It has: \n- Showing info label when user interaction with ScrollBar is started\n- Decelerating, Bounce \u0026 Rubber band mechanisms\n- Super customizable configuration\n- Different states for active / inactive states\n- Haptic feedback on interaction start / end and when info label changes on specified offset\n- Super Fancy animations\n\n\n## Installation\n\nDMScrollBar is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'DMScrollBar', '~\u003e 1.0.0'\n```\nand run \n\n```ruby\npod install\n```\n\n## Usage\n\nOn any ScrollView you want to add the ScrollBar with default configuration, just call (see result on Gid #2):\n```swift\nscrollView.configureScrollBar()\n```\n\n\nIf you want to provide title for info label, implement `DMScrollBarDelegate` protocol on your ViewController:\n```swift\nextension ViewController: DMScrollBarDelegate {\n    /// In this example, this method returns the section header title for the top visible section\n    func indicatorTitle(forOffset offset: CGFloat) -\u003e String? {\n        return \"Your title for info label\"\n    }\n}\n```\n\n\nIf you want to have iOS style scroll bar, configure ScrollBar with `.iosStyle` config (_Next code will create config for the Scroll Bar for Gif #1_):\n```swift\nscrollView.configureScrollBar(with: .iosStyle, delegate: self)\n```\n\n\nAny ScrollBar configuration can be easily combined with another one (_Next code will create config for the Scroll Bar for Gif #3_):\n```swift\nlet iosCombinedDefaultConfig = DMScrollBar.Configuration(\n    indicator: .init(\n        normalState: .iosStyle(width: 3),\n        activeState: .default\n    )\n)\nscrollView.configureScrollBar(with: iosCombinedDefaultConfig, delegate: self)\n```\n\n\nIf you want to configure scroll bar, with custom config, create configuration and call `configureScrollBar` (_Next code will create config for the Scroll Bar for Gif #4_):\n```swift\nlet customConfig = DMScrollBar.Configuration(\n    isAlwaysVisible: false,\n    hideTimeInterval: 1.5,\n    shouldDecelerate: false,\n    indicator: DMScrollBar.Configuration.Indicator(\n        normalState: .init(\n            size: CGSize(width: 35, height: 35),\n            backgroundColor: UIColor(red: 200 / 255, green: 150 / 255, blue: 80 / 255, alpha: 1),\n            insets: UIEdgeInsets(top: 8, left: 0, bottom: 8, right: 0),\n            image: UIImage(systemName: \"arrow.up.and.down.circle\")?.withRenderingMode(.alwaysOriginal).withTintColor(UIColor.white),\n            imageSize: CGSize(width: 20, height: 20),\n            roundedCorners: .roundedLeftCorners\n        ),\n        activeState: .custom(\n            config: .init(\n                size: CGSize(width: 50, height: 50),\n                backgroundColor: UIColor.brown,\n                insets: UIEdgeInsets(top: 8, left: 0, bottom: 8, right: 6),\n                image: UIImage(systemName: \"calendar.circle\")?.withRenderingMode(.alwaysOriginal).withTintColor(UIColor.cyan),\n                imageSize: CGSize(width: 28, height: 28),\n                roundedCorners: .allRounded\n            ),\n            textConfig: nil\n        ),\n        stateChangeAnimationDuration: 0.5,\n        insetsFollowsSafeArea: true,\n        animation: .init(showDuration: 0.75, hideDuration: 0.75, animationType: .fadeAndSide)\n    ),\n    infoLabel: DMScrollBar.Configuration.InfoLabel(\n        font: .systemFont(ofSize: 15),\n        textColor: .white,\n        distanceToScrollIndicator: 40,\n        backgroundColor: .brown,\n        textInsets: UIEdgeInsets(top: 8, left: 8, bottom: 8, right: 8),\n        maximumWidth: 300,\n        roundedCorners: .init(radius: .rounded, corners: [.topLeft, .bottomRight]),\n        animation: .init(showDuration: 0.75, hideDuration: 0.75, animationType: .fadeAndSide)\n    )\n)\nscrollView.configureScrollBar(with: customConfig, delegate: self)\n```\n\n## Author\n\nDmitrii Medvedev, dima7711@gmail.com\n\n## License\n\nDMScrollBar is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatanus%2Fdmscrollbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbatanus%2Fdmscrollbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatanus%2Fdmscrollbar/lists"}