SlidingText for Swift
  • June 4, 2025

Requirements


Requires iOS 8 or later and Xcode 6.1+

Installation


SlidingText is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod ‘SlidingText’

Usage with Storyboard


In Identity Inspector, connect the UIView to SlidingText Class and set the properties in Attribute Inspector.

Text is separated by the ‘|n’ delimiter

Usage with Code


let slidingText = SlidingText(frame: CGRect(x: 0, y: 30, width: self.view.frame.width, height: 120))

myAwesomeViewController.view.addSubView = slidingText

Functions


start()
pause()

Properties


labelColor
labelFont
labelSize
slidingTexts
pagerTintColor
pagerCurrentColor
timeToSlide
enableGestures
isPaused (Get)
currentIndex (Get)

GitHub


View Github

YOU MIGHT ALSO LIKE...
ViewCondition

✨ Super sweet syntactic sugar for SwiftUI.View initializers. At a Glance

SwiftUIX

SwiftUIX attempts to fill the gaps of SwiftUI, providing an extensive suite of components, extensions and utilities to complement the ...

SwiftUI Environment Overrides

A tiny library that adds a control panel for testing how SwiftUI app adapts for different color themes, accessibility settings, ...