{"id":2149,"url":"https://github.com/yannickl/Splitflap","last_synced_at":"2025-08-02T23:32:06.549Z","repository":{"id":56922189,"uuid":"45930556","full_name":"yannickl/Splitflap","owner":"yannickl","description":"A simple split-flap display for your Swift applications","archived":false,"fork":false,"pushed_at":"2023-10-06T07:36:05.000Z","size":133,"stargazers_count":1079,"open_issues_count":10,"forks_count":78,"subscribers_count":27,"default_branch":"master","last_synced_at":"2024-10-29T17:43:27.712Z","etag":null,"topics":["splitflap","uikit"],"latest_commit_sha":null,"homepage":"http://cocoadocs.org/docsets/Splitflap","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/yannickl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2015-11-10T18:05:27.000Z","updated_at":"2024-10-22T13:13:57.000Z","dependencies_parsed_at":"2024-04-24T09:59:03.773Z","dependency_job_id":"9f1efbdd-be05-4466-8854-dea4e07f245c","html_url":"https://github.com/yannickl/Splitflap","commit_stats":{"total_commits":72,"total_committers":4,"mean_commits":18.0,"dds":0.04166666666666663,"last_synced_commit":"04716937ebffcbd23c8e5080e0341c8978279edb"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannickl%2FSplitflap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannickl%2FSplitflap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannickl%2FSplitflap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannickl%2FSplitflap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yannickl","download_url":"https://codeload.github.com/yannickl/Splitflap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503132,"owners_count":17930517,"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":["splitflap","uikit"],"created_at":"2024-01-05T20:16:05.940Z","updated_at":"2024-12-06T17:30:46.536Z","avatar_url":"https://github.com/yannickl.png","language":"Swift","funding_links":[],"categories":["ALL","Other lists","UI","Swift"],"sub_categories":["Other free courses","Font","Other Testing"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"http://yannickloriot.com/resources/splitflap-logo.gif\" alt=\"Splitflap\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://cocoadocs.org/docsets/Splitflap/\"\u003e\u003cimg alt=\"Supported Platforms\" src=\"https://cocoapod-badges.herokuapp.com/p/Splitflap/badge.svg\"/\u003e\u003c/a\u003e\n  \u003ca href=\"http://cocoadocs.org/docsets/Splitflap/\"\u003e\u003cimg alt=\"Version\" src=\"https://cocoapod-badges.herokuapp.com/v/Splitflap/badge.svg\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/Carthage/Carthage\"\u003e\u003cimg alt=\"Carthage compatible\" src=\"https://img.shields.io/badge/Carthage-%E2%9C%93-brightgreen.svg?style=flat\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/apple/swift-package-manager\"\u003e\u003cimg alt=\"Swift Package Manager compatible\" src=\"https://img.shields.io/badge/SPM-%E2%9C%93-brightgreen.svg?style=flat\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://travis-ci.org/yannickl/Splitflap\"\u003e\u003cimg alt=\"Build status\" src=\"https://travis-ci.org/yannickl/Splitflap.svg?branch=master\"/\u003e\u003c/a\u003e\n  \u003ca href=\"http://codecov.io/github/yannickl/Splitflap\"\u003e\u003cimg alt=\"Code coverage status\" src=\"http://codecov.io/github/yannickl/Splitflap/coverage.svg?branch=master\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n***🛫 Splitflap*** is a simple to use component to present changeable alphanumeric text like often used as a public transport timetable in airports or railway stations or with some flip clocks.\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"#requirements\"\u003eRequirements\u003c/a\u003e • \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e • \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e • \u003ca href=\"#contribution\"\u003eContribution\u003c/a\u003e • \u003ca href=\"#contact\"\u003eContact\u003c/a\u003e • \u003ca href=\"#license-mit\"\u003eLicense\u003c/a\u003e\n\u003c/p\u003e\n\n## Requirements\n\n- iOS 8.0+ / tvOS 9.0+\n- Xcode 9.0+\n- Swift 4.2+\n\n## Usage\n\n### Hello World\n\nThe first example is the simplest way to use the `Splitflap` component. Here how to display this \"Hello\" text:\n\n![Hello](http://yannickloriot.com/resources/splitflap-hello.gif)\n\n```swift\nimport Splitflap\n\nlet splitflapView        = Splitflap(frame: CGRect(x: 0, y: 0, width: 370, height: 53))\nsplitflapView.datasource = self\n\n// Set the text to display by animating the flaps\nsplitflapView.setText(\"Hello\", animated: true)\n\n// MARK: - Splitflap DataSource Methods\n\n// Defines the number of flaps that will be used to display the text\nfunc numberOfFlapsInSplitflap(_ splitflap: Splitflap) -\u003e Int {\n  return 5\n}\n\n```\n\n### Theming\n\n`Splitflap` allows you to customize each flap individually by providing a `splitflap:builderForFlapAtIndex:` delegate method:\n\n![Theming](http://yannickloriot.com/resources/splitflap-theming.gif)\n\n```swift\nlet splitflapView        = Splitflap(frame: CGRect(x: 0, y: 0, width: 370, height: 53))\nsplitflapView.delegate   = self\nsplitflapView.datasource = self\n\n// Set the text with an emoji\nsplitflap.text = \"Cat \\u{1F63B}\"\n\n// MARK: - Splitflap Delegate Methods\n\n// Configure the appearance for each flaps\nfunc splitflap(_ splitflap: Splitflap, builderForFlapAtIndex index: Int) -\u003e FlapViewBuilder {\n  return FlapViewBuilder { builder in\n    builder.backgroundColor = UIColor(red: 251/255, green: 249/255, blue: 243/255, alpha: 1)\n    builder.cornerRadius    = 5\n    builder.font            = UIFont(name: \"Avenir-Black\", size:45)\n    builder.textAlignment   = .center\n    builder.textColor       = UIColor(red: 0, green: 0, blue: 0, alpha: 0.5)\n    builder.lineColor       = UIColor(red: 0, green: 0, blue: 0, alpha: 0.3)\n  }\n}\n\n// MARK: - Splitflap DataSource Methods\n\nfunc tokensInSplitflap(_ splitflap: Splitflap) -\u003e [String] {\n  return \" Cat\\u{1F63B}\".characters.map { String($0) }\n}\n```\n### And many more...\n\nTo go further, take a look at the documentation and the example project.\n\n*Note: All contributions are welcome*\n\n## Installation\n\n#### CocoaPods\n\nInstall CocoaPods if not already available:\n\n``` bash\n$ [sudo] gem install cocoapods\n$ pod setup\n```\nGo to the directory of your Xcode project, and Create and Edit your Podfile and add _Splitflap_:\n\n``` bash\n$ cd /path/to/MyProject\n$ touch Podfile\n$ edit Podfile\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '8.0'\n\nuse_frameworks!\npod 'Splitflap', '~\u003e 4.1.0'\n```\n\nInstall into your project:\n\n``` bash\n$ pod install\n```\n\nOpen your project in Xcode from the .xcworkspace file (not the usual project file):\n\n``` bash\n$ open MyProject.xcworkspace\n```\n\nYou can now `import Splitflap` framework into your files.\n\n#### Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.\n\nYou can install Carthage with [Homebrew](http://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate `Splitflap` into your Xcode project using Carthage, specify it in your `Cartfile` file:\n\n```ogdl\ngithub \"yannickl/Splitflap\" \u003e= 4.1.0\n```\n\n#### Swift Package Manager\n\nYou can use [The Swift Package Manager](https://swift.org/package-manager) to install `Splitflap` by adding the proper description to your `Package.swift` file:\n```swift\nimport PackageDescription\n\nlet package = Package(\n    name: \"YOUR_PROJECT_NAME\",\n    targets: [],\n    dependencies: [\n        .Package(url: \"https://github.com/yannickl/Splitflap.git\", versions: \"4.1.0\" ..\u003c Version.max)\n    ]\n)\n```\n\nNote that the [Swift Package Manager](https://swift.org/package-manager) is still in early design and development, for more information checkout its [GitHub Page](https://github.com/apple/swift-package-manager).\n\n#### Manually\n\n[Download](https://github.com/YannickL/Splitflap/archive/master.zip) the project and copy the `Splitflap` folder into your project to use it in.\n\n## Contribution\n\nContributions are welcomed and encouraged *♡*.\n\n## Contact\n\nYannick Loriot\n - [https://21.co/yannickl/](https://21.co/yannickl/)\n - [https://twitter.com/yannickloriot](https://twitter.com/yannickloriot)\n\n## License (MIT)\n\nCopyright (c) 2015-present - Yannick Loriot\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyannickl%2FSplitflap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyannickl%2FSplitflap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyannickl%2FSplitflap/lists"}