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...
PermissionsSwiftUI: A SwiftUI package to handle permissions

PermissionsSwiftUI displays and handles permissions in SwiftUI. It is largely inspired by SPPermissions. The UI is highly customizable and resembles an Apple style. ...

Pager tab strip view

Introduction PagerTabStripView is the first pager view built in pure SwiftUI. It provides a component to create interactive pager views ...

PageView

SwiftUI view enabling page-based navigation, imitating the behaviour of UIPageViewController in iOS.

Pages

    

How to take action when a property changes

1. Taking Action When a Property Changes: Property Observers Swift lets you observe and respond to changes in a property’s ...