{"id":18683777,"url":"https://github.com/efprefix/efautoscrolllabel","last_synced_at":"2025-04-05T03:08:58.633Z","repository":{"id":56909312,"uuid":"84153763","full_name":"EFPrefix/EFAutoScrollLabel","owner":"EFPrefix","description":"A label which can scroll when text length beyond the width of label.","archived":false,"fork":false,"pushed_at":"2025-02-16T16:44:35.000Z","size":5962,"stargazers_count":124,"open_issues_count":2,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T23:43:53.191Z","etag":null,"topics":["autoscrolllabel","cocoapods","ios","swift","uilabel"],"latest_commit_sha":null,"homepage":"https://swiftpackageindex.com/EFPrefix/EFAutoScrollLabel","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/EFPrefix.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-03-07T04:15:10.000Z","updated_at":"2025-02-16T16:44:38.000Z","dependencies_parsed_at":"2024-01-23T21:36:25.622Z","dependency_job_id":null,"html_url":"https://github.com/EFPrefix/EFAutoScrollLabel","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EFPrefix%2FEFAutoScrollLabel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EFPrefix%2FEFAutoScrollLabel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EFPrefix%2FEFAutoScrollLabel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EFPrefix%2FEFAutoScrollLabel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EFPrefix","download_url":"https://codeload.github.com/EFPrefix/EFAutoScrollLabel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280270,"owners_count":20912967,"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":["autoscrolllabel","cocoapods","ios","swift","uilabel"],"created_at":"2024-11-07T10:15:42.783Z","updated_at":"2025-04-05T03:08:58.613Z","avatar_url":"https://github.com/EFPrefix.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://raw.githubusercontent.com/EFPrefix/EFAutoScrollLabel/master/Assets/EFAutoScrollLabel.png)\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://swiftpackageindex.com/EFPrefix/EFAutoScrollLabel\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/SPM-ready-orange.svg\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"http://cocoapods.org/pods/EFAutoScrollLabel\"\u003e\n    \t\u003cimg src=\"https://img.shields.io/cocoapods/v/EFAutoScrollLabel.svg?style=flat\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"http://cocoapods.org/pods/EFAutoScrollLabel\"\u003e\n    \t\u003cimg src=\"https://img.shields.io/cocoapods/p/EFAutoScrollLabel.svg?style=flat\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/apple/swift\"\u003e\n    \t\u003cimg src=\"https://img.shields.io/badge/language-swift-orange.svg\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://raw.githubusercontent.com/EFPrefix/EFAutoScrollLabel/master/LICENSE\"\u003e\n    \t\u003cimg src=\"https://img.shields.io/cocoapods/l/EFAutoScrollLabel.svg?style=flat\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nA label which can scroll when text length beyond the width of label, in Swift. Converted from [AutoScrollLabel](https://github.com/firewolf-ljw/AutoScrollLabel/commit/6981994ad64ab3b29b87a423109f556134c83b41)\n\n\u003e [中文介绍](https://github.com/EFPrefix/EFAutoScrollLabel/blob/master/README_CN.md)\n\n## Overview\n\n\u003cimg src=\"https://raw.githubusercontent.com/EFPrefix/EFAutoScrollLabel/master/Assets/example.gif\" width = \"62.5%\"/\u003e\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n- Xcode 16+\n- Swift 6.0+\n\n## Installation\n\n### CocoaPods\n\nEFAutoScrollLabel is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile:\n\n```ruby\npod \"EFAutoScrollLabel\"\n```\n\n### Swift Package Manager\n\nThe [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the Swift compiler.\n\nOnce you have your Swift package set up, adding EFAutoScrollLabel as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/EFPrefix/EFAutoScrollLabel.git\", .upToNextMinor(from: \"6.0.0.0\"))\n]\n```\n\n## Setup\n\nSimply initialize a `EFAutoScrollLabel` the same way you set up a regular `UILabel`:\n\n```swift\nlet myLabel = EFAutoScrollLabel(frame: CGRect(x: 10, y: 10, width: 200, height: 40))\nself.view.addSubview(myLabel)\n```\n\n## Use\n\n#### 1. Import EFAutoScrollLabel module where you want to use it:\n\n```swift\nimport EFAutoScrollLabel\n```\n\n#### 2. Initialize a `EFAutoScrollLabel` and set some parameter:\n\n```swift\nlet myLabel = EFAutoScrollLabel(frame: CGRect(x: 10, y: 10, width: 200, height: 40))\nmyLabel.backgroundColor = UIColor(red: 253.0 / 255.0, green: 255.0 / 255.0, blue: 234.0 / 255.0, alpha: 1)\nmyLabel.textColor = UIColor(red: 249.0 / 255.0, green: 94.0 / 255.0, blue: 22.0 / 255.0, alpha: 1)\nmyLabel.font = UIFont.systemFont(ofSize: 13)\nmyLabel.labelSpacing = 30                       // Distance between start and end labels\nmyLabel.pauseInterval = 1.7                     // Seconds of pause before scrolling starts again\nmyLabel.scrollSpeed = 30                        // Pixels per second\nmyLabel.textAlignment = NSTextAlignment.left    // Centers text when no auto-scrolling is applied\nmyLabel.fadeLength = 12                         // Length of the left and right edge fade, 0 to disable\nmyLabel.scrollDirection = EFAutoScrollDirection.left\nself.view.addSubview(myLabel)\n```\n\n#### 3. `AutoLayout` is also supported.\n\n## Author\n\nEyreFree, eyrefree@eyrefree.org\n\n## License\n\n![](https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/License_icon-mit-88x31-2.svg/128px-License_icon-mit-88x31-2.svg.png)\n\nEFAutoScrollLabel is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefprefix%2Fefautoscrolllabel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefprefix%2Fefautoscrolllabel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefprefix%2Fefautoscrolllabel/lists"}