DesignableButton alternatives and similar libraries
Based on the "Button" category.
Alternatively, view DesignableButton alternatives based on common mentions on social networks and blogs.
-
LiquidFloatingActionButton
Material Design Floating Action Button in liquid state -
DOFavoriteButton
Cute Animated Button written in Swift. -
VBFPopFlatButton
Flat button with 9 different states using POP -
LGButton
A fully customisable subclass of the native UIControl which allows you to create beautiful buttons without writing any line of code. -
KCFloatingActionButton
:heart: Floating Action Button for iOS -
TransitionButton
UIButton sublass for loading and transition animation. -
ZFRippleButton
Custom UIButton effect inspired by Google Material Design -
WCLShineButton
This is a UI lib for iOS. Effects like shining. -
DynamicButton
Yet another animated flat buttons in Swift -
TVButton
Recreating the cool parallax icons from Apple TV as iOS UIButtons (in Swift). -
HTPressableButton
Flat design pressable button for iOS developers. -
FloatingButton
Easily customizable floating button menu created with SwiftUI -
PMSuperButton
🔥 PMSuperButton is a powerful UIButton coming from the countryside, but with super powers! 😎 -
gbkui-button-progress-view
Inspired by Apple’s download progress buttons in the app store -
ButtonProgressBar-iOS
A small and flexible (well documented) UIButton subclass with animated loading progress, and completion animation. -
TORoundedButton
A high-performance button control with rounded corners for iOS. -
NFDownloadButton
Revamped Download Button. It's kinda a reverse engineering of Netflix's app download button. -
VCFloatingActionButton
A Floating Action Button just like Google inbox for iOS -
JOEmojiableBtn
Since Facebook introduced reactions in 2016, it became a standard in several applications as a way for users to interact with content. ReactionButton is a control that allows developers to add this functionality to their apps in an easy way. -
EasySocialButton
An easy way to create beautiful social authentication buttons -
FlowBarButtonItem
Bar Button Item that can be moved anywhere in the screen, like Android's stickers button. -
JTFadingInfoView
UIButton-based view with fade in/out animation features -
ProgressButton
Custom button class that displays a progress bar around it to gauge -
ExpandableButton
Customizable and easy to use expandable button in Swift. -
EMEmojiableBtn
Option selector that works similar to Reactions by fb. Objective-c version -
MultiToggleButton
Multiple state tap-to-toggle UIButton (like old camera flash button) -
AnimatablePlayButton
Animated Play and Pause Button written in Swift, using CALayer, CAKeyframeAnimation. -
WYMaterialButton
Interactive and fully animated Material Design button for iOS developers. -
InStatDownloadButton
UIButton, ProgressView, Pending -
SDevBootstrapButton
Twitter Bootstrap buttons for Swift -
JSButton
A fully customisable swift subclass on UIButton which allows you to create beautiful buttons without writing any line of code.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of DesignableButton or a related project?
README
DesignableButton 
DesignableButton is a UIButton subclass that uses a centralised and reusable styling. In InterfaceBuilder, drag and drop a DesignableButton, choose your style and its applied instantly in InterfaceBuilder
Features
- One centralised class to define you main button styles so they can be reused
- Different styles for different button states: Normal/Selected/Disabled
- The centralised styles can be set in IB (no more IBOutlets needed for programatical styling)
- View the style in IB in realtime. Even changing button to selected state will update IB
- Individual buttons can override their centralised styles in IB
- Rounded corners and borders are easy with DesignableButton
- Buttons with an image above text are easy with DesignableButton
How to install
Add this to your CocoaPods Podfile. Note the IH prefix
pod 'IHDesignableButton'
How to use
Create an DesignableButton+Styles.swift extension file in your project
import UIKit
import IHDesignableButton // if DesignableButton is in CocoaPod
extension DesignableButton {
override open func prepareForInterfaceBuilder() {
super.prepareForInterfaceBuilder()
DesignableButton.setDesignableStyles(isInterfaceBuilder: true)
}
static func setDesignableStyles(isInterfaceBuilder: Bool = false) {
// example style
DesignableButton.setStyle(style: { (designableButton: DesignableButton) -> Void in
if designableButton.isHighlighted || designableButton.isSelected {
// replace this with your style for selected/highlighted states
designableButton.setTitleColor(designableButton.customTextColor ?? UIColor.white, for: UIControlState())
designableButton.backgroundColor = designableButton.selectedColor ?? UIColor.red
designableButton.layer.borderColor = designableButton.selectedColor?.cgColor ?? UIColor.red.cgColor
designableButton.layer.borderWidth = designableButton.borderWidth ?? 0
} else if designableButton.isEnabled {
// replace this with your style for the normal state
designableButton.setTitleColor(designableButton.customTextColor ?? UIColor.white, for: UIControlState())
designableButton.backgroundColor = designableButton.defaultColor ?? UIColor.blue
designableButton.layer.borderColor = designableButton.defaultColor?.cgColor ?? UIColor.blue.cgColor
designableButton.layer.borderWidth = designableButton.borderWidth ?? 0
}
else {
// replace this with your style for the disabled state
designableButton.setTitleColor(designableButton.customTextColor ?? UIColor.lightGray, for: UIControlState())
designableButton.backgroundColor = designableButton.disabledColor ?? UIColor.lightGray()
designableButton.layer.borderColor = designableButton.borderColor?.cgColor ?? UIColor.gray.cgColor
designableButton.layer.borderWidth = designableButton.borderWidth ?? 1
}
// replace this with your style for all states
designableButton.layer.cornerRadius = designableButton.cornerRadius ?? 12
designableButton.setTitle(designableButton.titleLabel?.text, for: .normal)
}, for: "primary") // this is the name/key of your style
}
}
In the setDesignableStyles()
method you can call DesignableButton.setStyle()
to create a new style. Most projects will only need a few button styles
In you AppDelegate's application(_ , didFinishLaunchingWithOptions()
call DesignableButton.setDesignableStyles()
Now in Interface Builder, drag a UIButton onto a view
Change the class to DesignableButton
and the module to IHDesignableButton
Change the button type from System
to Custom
Set the Button Style to "primary" or any other button style you're created
Half price for a limited time only :)
A Codable extension to decode arrays and to catch & log all decoding failures https://github.com/IdleHandsApps/SafeDecoder
An elegant solution for keeping views visible when the keyboard is being shown https://github.com/IdleHandsApps/IHKeyboardAvoiding
A fully automatic status bar overlay for No Internet Connection messages https://github.com/IdleHandsApps/StatusBarOverlay
Author
- Fraser Scott-Morrison ([email protected])
It'd be great to hear about any cool apps that are using DesignableButton
License
Distributed under the MIT License
*Note that all licence references and agreements mentioned in the DesignableButton README section above
are relevant to that project's source code only.