- May 27, 2025
- Mins Read
$ pod try JSButton
…or clone this repo and build and run/test the JSButton
project in Xcode to see JSButton
in action. If you don’t have CocoaPods installed, grab it with [sudo] gem install cocoapods
.
$ cd Example
$ pod install
$ open JSButton.xcworkspace
JSButton is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod “JSButton”
Just drag the JSButton.swift
files into your project.
JSButton
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 JSButton: Failed to load designables from path (null)
…then you are likely using JSButton
as a static library, which does not support IB annotations. Some workarounds include:
JSButton
as a dynamic framework using CocoaPods with use_frameworks!
in your Podfile
, or with CarthageJSButton
by dragging its source files to your projectIf you already have a Label where you want to use then set it’s class
to JSButton
in identity inspector.
Or drag a Button from object library and then change it’s class
to JSButton
in identity inspector.
Set the module
property to JSButton
.
To add action to your button just use .action
you dont have to add Target and then handler function.
yourButton.action {
print(“Button Pressed!”)
}
Light and scrollable view controller for tvOS to present blocks of text Description TvOSTextViewer is a view controller to present ...
TvOSSlider is an implementation of UISlider for tvOS. Description and usage TvOSSlider palliates missing an implementation of UISlider for tvOS as part ...
TvOSScribble, based on CoreML, mitigates the lack of a physical numpad area in Siri Remote implementing a handwriting gesture recognizer. ...
PIN keyboard for tvOS Description TvOSPinKeyboard is a view controller that allows easily asking for PIN codes in tvOs Requirements ...
📺 A tvOS button which truncates long text with '... More'. The TvOSMoreButton is a simple view which aims to ...