Code Monkey home page Code Monkey logo

starwarstextview's Introduction

StarWarsTextView

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

starwarstextview's People

Contributors

pauliusvindzigelskis avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

starwarstextview's Issues

Xcode 11.3.1 Compatibility

This pod is causing Xcode to constantly crash after I've added it to the project. Now I can't access my project anymore it seems. Any advice?

To Java

It's not an issue but a petition: Could somebody please do the same thing but with Java? It's driving me crazy, searching, asking and trying for months without success... I don't even remember if I managed to contact with Paulius or creator of this to ask.
It's for using in a scoreboard on my project what can be downloaded and checked in my profile.
Thanks all in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.