Animated Mask Label
  • June 9, 2025

 

Demo/Example


For demo:

$ pod try AnimatedMaskLabel

To run the example project, clone the repo, and run pod install from the Example directory first.

$ cd Example

$ pod install

If you don’t have CocoaPods installed, grab it with [sudo] gem install cocoapods.

$ open AnimatedMaskLabel.xcworkspace

Requirements


  • iOS 10.0 or later
  • Swift 4+
  • Xcode 9+

Installation


CocoaPods

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

pod ‘AnimatedMaskLabel’

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate AnimatedMaskLabel into your Xcode project using Carthage, specify it in your Cartfile:

github “jogendra/AnimatedMaskLabel”

Run carthage update to build the framework and drag the built AnimatedMaskLabel.framework into your Xcode project.

Manual Installation

Just drag the AnimatedMaskLabel.swift files into your project.

Usage


Step 1:

Set your view class as AnimatedMaskLabel –

Step 2:

The text you want to animated:

GitHub


View Github

YOU MIGHT ALSO LIKE...
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 ...

How to create your own structs? How to compute property values dynamically?

1. Creating Your Own Structs In Swift, a struct is a value type that you define with the struct keyword. ...