IBDesignable option button that have vertical stacked title and option labels for iOS and tvOS.
- Swift 3.0+
- iOS 9.0+
- tvOS 9.0+
use_frameworks!
pod 'OptionButton'
- Create an instance of
OptionButtonfrom code, or drag and drop aUIButtonto storyboard and change its class toOptionButton. - It is a regular UIButton subclass with a stack view that have
nameLabelandoptionLabel. - You could change the labels text, font and textColor from storyboard.
- Also you could set other properties from code.
- You could set the content insets from either storyboard or code by
leftInset,rightInset,topInsetandbottomInsetproperties.

