SkillAgentSearch skills...

SwiftyScrollingLabel

SwiftScrollingLabel is a subclass of UIView and it adds a label on it with scrolling marquee effect.

Install / Use

/learn @Sahilberi/SwiftyScrollingLabel
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

SwiftyScrollingLabel

SwiftyScrollingLabel is a subclass of UIView and it adds a label on it with scrolling marquee effect.

GIF of SwiftyScrolling label demo

Features

  • [x] Easy setup with @IBInspectable
  • [x] A beautiful and animated Scrolling effect.
  • [x] Stop and Resume Animation Feature.

Requirements

  • iOS 8.0+
  • Xcode 8.0
  • Swift 3.0

Installation

Manually

  1. Clone or Download this Repo. Then simply drag the class SwiftyScrollingLabel.swift to your Xcode project.

By Inspector

  1. Set the class and configure the options.
<img src = "https://cloud.githubusercontent.com/assets/7422405/25654686/a6012592-300f-11e7-9ec1-575e5ab46c13.png" />

Methods

  • Create a label outlet and call the startAnimate method to start scrolling effect.
  • For Resume Animation call resumeAnimate method.
  • For Stop Animation call pauseAnimate method.

Note:

Always call startAnimate in viewDidAppear method.

Contributions

Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.

View on GitHub
GitHub Stars27
CategoryDevelopment
Updated2y ago
Forks6

Languages

Swift

Security Score

75/100

Audited on Sep 22, 2023

No findings