Splitflap
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.
Requirements
- iOS 8.0+ / tvOS 9.0+
- Xcode 9.0+
- Swift 4.2+
Usage
Hello World
The first example is the simplest way to use the Splitflap
component. Here how to display this "Hello" text:
Theming
Splitflap
allows you to customize each flap individually by providing a splitflap:builderForFlapAtIndex:
delegate method:
And many more...
To go further, take a look at the documentation and the example project.
Note: All contributions are welcome
Installation
CocoaPods
Install CocoaPods if not already available:
Go to the directory of your Xcode project, and Create and Edit your Podfile and add Splitflap:
Install into your project:
Open your project in Xcode from the .xcworkspace file (not the usual project file):
You can now import Splitflap
framework into your files.
Carthage
Carthage is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.
You can install Carthage with Homebrew using the following command:
To integrate Splitflap
into your Xcode project using Carthage, specify it in your Cartfile
file:
Swift Package Manager
You can use The Swift Package Manager to install Splitflap
by adding the proper description to your Package.swift
file:
Note that the Swift Package Manager is still in early design and development, for more information checkout its GitHub Page.
Manually
Download the project and copy the Splitflap
folder into your project to use it in.