{"id":15038078,"url":"https://github.com/cl7/cltypinglabel","last_synced_at":"2025-04-05T07:05:44.011Z","repository":{"id":46581520,"uuid":"52227543","full_name":"cl7/CLTypingLabel","owner":"cl7","description":"iOS UILabel with character by character typing /typewriter animation","archived":false,"fork":false,"pushed_at":"2020-05-13T00:13:51.000Z","size":888,"stargazers_count":335,"open_issues_count":3,"forks_count":56,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-05T07:05:39.554Z","etag":null,"topics":["animation","character","cocoapods","ios","ios-uilabel","swift","swift-4","swift4","swift5","typing-animation","typing-effect","uikit","uilabel"],"latest_commit_sha":null,"homepage":"https://cocoapods.org/pods/CLTypingLabel","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/cl7.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":"2016-02-21T20:55:07.000Z","updated_at":"2025-03-06T00:36:44.000Z","dependencies_parsed_at":"2022-09-09T05:50:17.435Z","dependency_job_id":null,"html_url":"https://github.com/cl7/CLTypingLabel","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cl7%2FCLTypingLabel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cl7%2FCLTypingLabel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cl7%2FCLTypingLabel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cl7%2FCLTypingLabel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cl7","download_url":"https://codeload.github.com/cl7/CLTypingLabel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299832,"owners_count":20916190,"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":["animation","character","cocoapods","ios","ios-uilabel","swift","swift-4","swift4","swift5","typing-animation","typing-effect","uikit","uilabel"],"created_at":"2024-09-24T20:37:00.895Z","updated_at":"2025-04-05T07:05:43.991Z","avatar_url":"https://github.com/cl7.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CLTypingLabel ![Language](https://img.shields.io/badge/iOS-Swift5-orange.svg) \u003cimg src=\"https://travis-ci.org/travis-ci/travis-web.svg?branch=master\"\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/l800891/CLTypingLabel/master/Assets/demogiff.gif\" width=320\u003e\n\nA lightweight UILabel subclass with character by character typewriter like animation in Swift, super simple to use\n\niOS上自带逐字打印动画效果的UILabel\n\n## Installation\n\n### Manual\n\n0. Copy and paste \u003ca href=\"https://github.com/l800891/CLTypingLabel/blob/master/Pod/Classes/CLTypingLabel.swift\"\u003eCLTypingLabel.swift\u003c/a\u003e to your xcode project.\n\n### [CocoaPods](https://cocoapods.org/pods/CLTypingLabel)\n\n1. Install the latest release of CocoaPods: `gem install cocoapods`\n2. Add this line to your Podfile: `pod 'CLTypingLabel'`\n3. Install the pod: `pod install`\n\n\n## Usage\n\n1. Change the class of a label from UILabel to CLTypingLabel;\n\n \u003cimg src=\"https://raw.githubusercontent.com/l800891/CLTypingLabel/master/Assets/UILabelShot.png\" width=200\u003e\n2. Programmatically set the .text property of your CLTypingLabel to a new String. The animation will be triggered automatically.\n\n\n## Sample Code\n\n```swift\n@IBOutlet weak var myTypeWriterLabel: CLTypingLabel!\n```\nAt runtime, set text of the label will trigger animation automatically:\n```swift\nmyTypeWriterLabel.text = \"This is a demo of typing label animation...\"\n\n```\nYou can also trigger what you need after animation is finished:\n```swift\nmyTypeWriterLabel.onTypingAnimationFinished = {\n\t//code goes here\n}\n```\nAlso works on attributedText:\n```swift\nmyTypeWriterLabel.attributedText = NSAttributedString(string: \"This is an attributed text typing animation...\", attributes: attr)\n\n```\nYou can pause the typing animation at any time:\n```swift\nmyTypeWriterLabel.pauseTyping() //this will pause the typing animation\nmyTypeWriterLabel.continueTyping() //this will continue paused typing animation\n```\nAnd customize time interval between each character:\n```swift\nmyTypeWriterLabel.charInterval = 0.08 //optional, default is 0.1\n```\n\n## License\n\nThis code is distributed under the terms and conditions of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcl7%2Fcltypinglabel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcl7%2Fcltypinglabel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcl7%2Fcltypinglabel/lists"}