Latest 1.3.0
Homepage https://github.com/PauliusVindzigelskis/StarWarsTextView
License MIT
Platforms ios 11.0
Frameworks UIKit
Authors

Version
Platform
Language
GitHub license

Subclass of UITextView to present Star Wars style credits.
Includes original Star Wars font (News Gothic) and animation API to crawl from top to bottom slowly.

Note: Suggested to setup through Xib/Storyboard as CALayer transformations will disrupt AutoLayout constrainted frames. IBDesginables might help adjust view in screen

Podfile (for use with Cocoapods)

pod 'StarWarsTextView'

API

Initilize via code or XIB/Storyboard

Delegate

protocol StarWarsTextViewDelegate : NSObjectProtocol
{
    optional func starWarsTextViewDidStartScrolling(_ textView:StarWarsTextView)
    optional func starWarsTextViewDidFinishScrolling(_ textView:StarWarsTextView)
}

Public Properties

public static func starWarsFont() -> UIFont

public weak var starWarsDelegate: StarWarsTextViewDelegate?
public var scrollingSpeed: CGFloat
public var animationStepsInterval: TimeInterval
public var inclinationRatio: CGFloat
public var xAngle: CGFloat
public var isCrawling: Bool

Public Functions

public func scrollToTop(animated: Bool = false)
public func startCrawlingAnimation()
public func stopCrawlingAnimation()

Demo

simulator screen shot - iphone se - 2018-02-20 at 12 02 43 simulator screen shot - iphone se - 2018-02-20 at 12 02 36

starwarsdemo2

Latest podspec

{
    "name": "StarWarsTextView",
    "version": "1.3.0",
    "summary": "Shows Star Wars intro style Text View",
    "swift_version": "4.0",
    "description": "Did You ever thought how cool would be to show Star Wars intro running text in your app? It is now possible more than ever! Join the war between white and black pew pew soldiers and emerge into fantasy world of Star Wars!",
    "homepage": "https://github.com/PauliusVindzigelskis/StarWarsTextView",
    "screenshots": [
        "https://user-images.githubusercontent.com/2383901/36440790-2e790c5c-1636-11e8-89ae-87726b30f98c.png",
        "https://user-images.githubusercontent.com/2383901/36433632-910386e0-1622-11e8-8915-4e68ae656fd0.gif"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Paulius Vindzigelskis": "p.vind[email protected]"
    },
    "source": {
        "git": "https://github.com/PauliusVindzigelskis/StarWarsTextView.git",
        "tag": "1.3.0"
    },
    "platforms": {
        "ios": "11.0"
    },
    "source_files": "Library/*.swift",
    "resources": "Library/*.otf",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This