- July 4, 2025
- Mins Read
pod try JSLabel
…or clone this repo and build and run/test the JSLabel
project in Xcode to see JSLabel
in action. If you don’t have CocoaPods installed, grab it with [sudo] gem install cocoapods
.
$ cd Example
$ pod install
$ open JSLabel.xcworkspace
pod “JSLabel”
Just drag the JSLabel.swift
files into your project.
JSLabel
includes IBInspectable
annotations to enable configuring the label inside Interface Builder. However, if you see these warnings when building…
IB Designables: Failed to update auto layout status: Failed to load designables from path (null)
IB Designables: Failed to render instance of JSLabel: Failed to load designables from path (null)
…then you are likely using JSLabel
as a static library, which does not support IB annotations. Some workarounds include:
JSLabel
as a dynamic framework using CocoaPods with use_frameworks!
in your Podfile
, or with CarthageJSLabel
by dragging its source files to your project
import JSLabel
let BlinkLabel = JSLabel()
BlinkLabel.startBlinking()
BlinkLabel.stopBlinking()
If you already have a Label where you want to use then set it’s class
to JSLabel
in identity inspector.
Or drag a Label from object library and then change it’s class
to JSLabel
in identity inspector.
Set the module
property to JSLabel
.