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
OptionButton
from code, or drag and drop aUIButton
to storyboard and change its class toOptionButton
. - It is a regular UIButton subclass with a stack view that have
nameLabel
andoptionLabel
. - 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
,topInset
andbottomInset
properties.